summary refs log tree commit diff
diff options
context:
space:
mode:
authorNeil Johnson <neil@fragile.org.uk>2019-09-24 23:06:11 +0100
committerNeil Johnson <neil@matrix.org>2019-09-25 09:54:19 +0100
commitc76a0669dd386f141cc37b26d98ca8bd47a9d664 (patch)
tree2ecdc05debe03b3bfa8aff82d13a52607b23b911
parentremove email dependency on msisdn validity checks in _check_threepid (diff)
downloadsynapse-c76a0669dd386f141cc37b26d98ca8bd47a9d664.tar.xz
black
-rw-r--r--synapse/handlers/auth.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py
index 62d7def693..c8e2b746dc 100644
--- a/synapse/handlers/auth.py
+++ b/synapse/handlers/auth.py
@@ -435,7 +435,7 @@ class AuthHandler(BaseHandler):
 
     @defer.inlineCallbacks
     def _check_threepid(self, medium, authdict, **kwargs):
-        print('_check_threepid')
+        print("_check_threepid")
         if "threepid_creds" not in authdict:
             raise LoginError(400, "Missing threepid_creds", Codes.MISSING_PARAM)
 
@@ -483,9 +483,7 @@ class AuthHandler(BaseHandler):
                     # Valid threepid returned, delete from the db
                     yield self.store.delete_threepid_session(threepid_creds["sid"])
             else:
-                raise SynapseError(
-                    400, "Email is not enabled on this homeserver"
-                )
+                raise SynapseError(400, "Email is not enabled on this homeserver")
         else:
             raise SynapseError(400, "Unrecognized threepid medium: %s" % (medium,))
         if not threepid: