bug fixes

This commit is contained in:
Neil Johnson 2018-08-03 22:29:03 +01:00
parent e10830e976
commit 886be75ad1
5 changed files with 10 additions and 27 deletions

View file

@ -540,7 +540,7 @@ class RegistrationHandler(BaseHandler):
Do not accept registrations if monthly active user limits exceeded
and limiting is enabled
"""
error = RegistrationError(
403, "Monthly Active User limits exceeded", errcode=Codes.MAU_LIMIT_EXCEEDED
)
yield self.auth.check_auth_blocking(error)
try:
yield self.auth.check_auth_blocking()
except AuthError as e:
raise RegistrationError(e.code, e.message, e.errcode)