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:
Mark Haines 2016-03-08 11:08:20 +00:00
commit ea72bd9600
8 changed files with 10 additions and 10 deletions

View file

@ -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,

View file

@ -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)