0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-06 22:59:22 +01:00

Remember to yield: not much point testing is a deferred is not None

This commit is contained in:
David Baker 2015-08-04 16:18:17 +01:00
parent 883aabe423
commit a0dea6eaed

View file

@ -224,9 +224,10 @@ class RegisterRestServlet(RestServlet):
if k not in body:
absent.append(k)
existingUid = self.hs.get_datastore().get_user_id_by_threepid(
existingUid = yield self.hs.get_datastore().get_user_id_by_threepid(
'email', body['email']
)
if existingUid is not None:
raise SynapseError(400, "Email is already in use", Codes.THREEPID_IN_USE)