be more pythonic

pull/915/head
David Baker 2016-07-12 14:15:10 +01:00
parent aaa9d9f0e1
commit c55ad2e375
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ class ThreepidRequestTokenRestServlet(RestServlet):
if k not in body:
absent.append(k)
if len(absent) > 0:
if absent:
raise SynapseError(400, "Missing params: %r" % absent, Codes.MISSING_PARAM)
existingUid = yield self.hs.get_datastore().get_user_id_by_threepid(