mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-09-27 21:30:50 -04:00
Merge pull request #631 from matrix-org/markjh/py3v1
Use syntax that's valid on both py2.7 and py3
This commit is contained in:
commit
ea72bd9600
8 changed files with 10 additions and 10 deletions
|
@ -472,7 +472,7 @@ class FederationHandler(BaseHandler):
|
|||
limit=100,
|
||||
extremities=[e for e in extremities.keys()]
|
||||
)
|
||||
except SynapseError:
|
||||
except SynapseError as e:
|
||||
logger.info(
|
||||
"Failed to backfill from %s because %s",
|
||||
dom, e,
|
||||
|
|
|
@ -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