Just return the deferred straight off
defer.returnValue doth not maketh a generator: it would need a yield to be a generator, and this doesn't need a yield.
This commit is contained in:
parent
3557cf34dc
commit
ad882cd54d
|
@ -309,13 +309,11 @@ class AuthHandler(BaseHandler):
|
||||||
defer.returnValue(True)
|
defer.returnValue(True)
|
||||||
raise LoginError(401, "", errcode=Codes.UNAUTHORIZED)
|
raise LoginError(401, "", errcode=Codes.UNAUTHORIZED)
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
|
||||||
def _check_email_identity(self, authdict, _):
|
def _check_email_identity(self, authdict, _):
|
||||||
defer.returnValue(self._check_threepid('email', authdict))
|
return self._check_threepid('email', authdict)
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
|
||||||
def _check_msisdn(self, authdict, _):
|
def _check_msisdn(self, authdict, _):
|
||||||
defer.returnValue(self._check_threepid('msisdn', authdict))
|
return self._check_threepid('msisdn', authdict)
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def _check_dummy_auth(self, authdict, _):
|
def _check_dummy_auth(self, authdict, _):
|
||||||
|
|
Loading…
Reference in New Issue