diff options
author | Tayane Fernandes <tayane.rmf@gmail.com> | 2017-01-12 17:56:00 -0200 |
---|---|---|
committer | Tayane Fernandes <tayane.rmf@gmail.com> | 2017-01-12 17:56:00 -0200 |
commit | 6a4545a33cb62abf32bf46422759778a88f96097 (patch) | |
tree | 65bc462859d5b9b0240d4cd5e18045e7057666f1 /service/pixelated/config | |
parent | d2aabc8c514cb520d968e8241ec15c93bae2a0fe (diff) |
Re-raise the exception after closing the session
We were trying to setup services even after closing the session. We fixed it
and added unit test.
Related with: #815
Diffstat (limited to 'service/pixelated/config')
-rw-r--r-- | service/pixelated/config/sessions.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/service/pixelated/config/sessions.py b/service/pixelated/config/sessions.py index 73c366c7..439ca9b3 100644 --- a/service/pixelated/config/sessions.py +++ b/service/pixelated/config/sessions.py @@ -161,6 +161,7 @@ class LeapSession(object): except UploadKeyError as e: logger.warn('{0}: {1}. Closing session for user: {2}'.format(e.__class__.__name__, e, self.account_email())) self.close() + raise yield self._create_account(self.soledad, self.user_auth.uuid) self.incoming_mail_fetcher = yield self._create_incoming_mail_fetcher( |