Modify condition on empty localpart

This commit is contained in:
Luke Barnard 2017-05-10 17:34:30 +01:00
parent 369195caa5
commit ccad2ed824

View file

@ -54,7 +54,7 @@ class RegistrationHandler(BaseHandler):
Codes.INVALID_USERNAME
)
if len(localpart) == 0:
if not localpart:
raise SynapseError(
400,
"User ID cannot be empty",