diff options
author | Luke Barnard <lukeb@openmarket.com> | 2017-05-10 17:34:30 +0100 |
---|---|---|
committer | Luke Barnard <lukeb@openmarket.com> | 2017-05-10 17:34:30 +0100 |
commit | ccad2ed824f1601d2cc29aafe5dff6ef46668f5e (patch) | |
tree | a40643ce61ac9bece8f6e6e95ec4451191df7e14 /synapse/handlers/register.py | |
parent | Modify register/available to be GET with query param (diff) | |
download | synapse-ccad2ed824f1601d2cc29aafe5dff6ef46668f5e.tar.xz |
Modify condition on empty localpart
Diffstat (limited to 'synapse/handlers/register.py')
-rw-r--r-- | synapse/handlers/register.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/register.py b/synapse/handlers/register.py index dd84c5f5e9..ee3a2269a8 100644 --- a/synapse/handlers/register.py +++ b/synapse/handlers/register.py @@ -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", |