mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-25 07:09:40 -05:00
be more pythonic
This commit is contained in:
parent
aaa9d9f0e1
commit
c55ad2e375
@ -139,7 +139,7 @@ class ThreepidRequestTokenRestServlet(RestServlet):
|
|||||||
if k not in body:
|
if k not in body:
|
||||||
absent.append(k)
|
absent.append(k)
|
||||||
|
|
||||||
if len(absent) > 0:
|
if absent:
|
||||||
raise SynapseError(400, "Missing params: %r" % absent, Codes.MISSING_PARAM)
|
raise SynapseError(400, "Missing params: %r" % absent, Codes.MISSING_PARAM)
|
||||||
|
|
||||||
existingUid = yield self.hs.get_datastore().get_user_id_by_threepid(
|
existingUid = yield self.hs.get_datastore().get_user_id_by_threepid(
|
||||||
|
Loading…
Reference in New Issue
Block a user