summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2015-11-11 19:42:09 +0100
committerRuben Pollan <meskio@sindominio.net>2015-11-11 19:47:32 +0100
commitf4b0c01b6737e4266f12276e6b2a058bf3c0f743 (patch)
tree82ea0e1d04f6a74fe7e11a60d6d238706bfe27cd
parentfca2246011b8c2402977fde93291d46a9a3438fb (diff)
[but] Fix errback on InvalidAuthToken
- Related: #7583
-rw-r--r--changes/next-changelog.rst1
-rw-r--r--src/leap/bitmask/services/soledad/soledadbootstrapper.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/changes/next-changelog.rst b/changes/next-changelog.rst
index d1623d6f..22af9bd8 100644
--- a/changes/next-changelog.rst
+++ b/changes/next-changelog.rst
@@ -19,6 +19,7 @@ Bugfixes
- `#7568 <https://leap.se/code/issues/7568>`_: Fix typo on signal name.
- `#7583 <https://leap.se/code/issues/7583>`_: Fix set_soledad_auth_token event callback signature.
- `#7585 <https://leap.se/code/issues/7585>`_: Open email help link on browser.
+- `#7598 <https://leap.se/code/issues/7598>`_: Fix errback on InvalidAuthToken.
- `#1235 <https://leap.se/code/issues/1235>`_: Description for the fixed stuff corresponding with issue #1235.
- Bugfix without related issue number.
diff --git a/src/leap/bitmask/services/soledad/soledadbootstrapper.py b/src/leap/bitmask/services/soledad/soledadbootstrapper.py
index 60a2130b..a10a2731 100644
--- a/src/leap/bitmask/services/soledad/soledadbootstrapper.py
+++ b/src/leap/bitmask/services/soledad/soledadbootstrapper.py
@@ -654,7 +654,7 @@ class Syncer(object):
logger.error('Invalid auth token while trying to sync Soledad')
self._signaler.signal(
self._signaler.soledad_invalid_auth_token)
- self._callback_deferred.fail(failure)
+ self._callback_deferred.errback(failure)
elif failure.check(sqlite_ProgrammingError,
sqlcipher_ProgrammingError):
logger.exception("%r" % (failure.value,))