Use syntax that works on both py2.7 and py3

This commit is contained in:
Mark Haines 2016-03-07 20:13:10 +00:00
parent 80916e6884
commit 239badea9b
8 changed files with 10 additions and 10 deletions

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)