summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2016-10-21 17:10:49 -0400
committerKali Kaneko (leap communications) <kali@leap.se>2016-10-21 17:17:42 -0400
commitdb8567e5035978dc16fd5bbac9aecb73b600d41e (patch)
treef56aacb9be83780a87650038d96e51d87277111c
parent9903239f74602ddaa909aedadc82d65132cebcdd (diff)
[bug] capture the exception value properly
this looks like a careless migration to twisted failures. who knows how long this was like this, this should be covered by tests.
-rw-r--r--src/leap/bitmask/mail/outgoing/service.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leap/bitmask/mail/outgoing/service.py b/src/leap/bitmask/mail/outgoing/service.py
index accb9e5..416b8bf 100644
--- a/src/leap/bitmask/mail/outgoing/service.py
+++ b/src/leap/bitmask/mail/outgoing/service.py
@@ -194,10 +194,10 @@ class OutgoingMail(object):
if self._bouncer:
self._bouncer.bounce_message(
- err.message, to=self._from_address,
+ failure.getErrorMessage(), to=self._from_address,
orig=origmsg)
else:
- raise err
+ failure.raiseException()
def _route_msg(self, encrypt_and_sign_result, raw):
"""