Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
neilisfragile committed Sep 25, 2019
1 parent 7e00874 commit c76a066
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions synapse/handlers/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ def _check_terms_auth(self, authdict, **kwargs):

@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)

Expand Down Expand Up @@ -483,9 +483,7 @@ def _check_threepid(self, medium, authdict, **kwargs):
# 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:
Expand Down

0 comments on commit c76a066

Please sign in to comment.