diff options
author | Erik Johnston <erik@matrix.org> | 2020-01-20 17:38:21 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-20 17:38:21 +0000 |
commit | b0a66ab83ce4d67e145a1129b1ebd8fc53c24408 (patch) | |
tree | e92fe5cc41128b369e096f2e34c7bae0e369803e /synapse/rest/client/v2_alpha/register.py | |
parent | Fix `/events/:event_id` deprecated API. (#6731) (diff) | |
download | synapse-b0a66ab83ce4d67e145a1129b1ebd8fc53c24408.tar.xz |
Fixup synapse.rest to pass mypy (#6732)
Diffstat (limited to 'synapse/rest/client/v2_alpha/register.py')
-rw-r--r-- | synapse/rest/client/v2_alpha/register.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/register.py b/synapse/rest/client/v2_alpha/register.py index 66de16a1fa..1bda9aec7e 100644 --- a/synapse/rest/client/v2_alpha/register.py +++ b/synapse/rest/client/v2_alpha/register.py @@ -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 |