mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-17 16:50:14 -04:00
Fixup synapse.rest to pass mypy (#6732)
This commit is contained in:
parent
74b74462f1
commit
b0a66ab83c
12 changed files with 56 additions and 35 deletions
|
@ -21,6 +21,7 @@ from typing import List, Union
|
|||
from six import string_types
|
||||
|
||||
import synapse
|
||||
import synapse.api.auth
|
||||
import synapse.types
|
||||
from synapse.api.constants import LoginType
|
||||
from synapse.api.errors import (
|
||||
|
@ -405,7 +406,7 @@ class RegisterRestServlet(RestServlet):
|
|||
return ret
|
||||
elif kind != b"user":
|
||||
raise UnrecognizedRequestError(
|
||||
"Do not understand membership kind: %s" % (kind,)
|
||||
"Do not understand membership kind: %s" % (kind.decode("utf8"),)
|
||||
)
|
||||
|
||||
# we do basic sanity checks here because the auth layer will store these
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue