mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-05 00:32:21 -05:00
Use syntax that works on both py2.7 and py3
This commit is contained in:
parent
80916e6884
commit
239badea9b
8 changed files with 10 additions and 10 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue