mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-28 23:20:09 +03:00
Modify condition on empty localpart
This commit is contained in:
parent
369195caa5
commit
ccad2ed824
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue