diff options
author | Mark Haines <mark.haines@matrix.org> | 2016-03-07 20:13:10 +0000 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2016-03-07 20:13:10 +0000 |
commit | 239badea9be1dd7857833408209ef22dd99773de (patch) | |
tree | 80374571f6fab646c8e38ba8bffc3fb1477440d0 /synapse/handlers/register.py | |
parent | Merge pull request #626 from matrix-org/erikj/visibility (diff) | |
download | synapse-239badea9be1dd7857833408209ef22dd99773de.tar.xz |
Use syntax that works on both py2.7 and py3
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 c5e5b28811..e2ace6a4e5 100644 --- a/synapse/handlers/register.py +++ b/synapse/handlers/register.py @@ -241,7 +241,7 @@ class RegistrationHandler(BaseHandler): password_hash=None ) yield registered_user(self.distributor, user) - except Exception, e: + except Exception as e: yield self.store.add_access_token_to_user(user_id, token) # Ignore Registration errors logger.exception(e) |