summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/core
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2017-04-14 20:01:52 +0200
committerKali Kaneko (leap communications) <kali@leap.se>2017-04-19 20:14:23 +0200
commite57ed0cd5ba92220e09fe80ab04cce0b3cccfaeb (patch)
tree68958aee61db4d8906d8b97a3603929d55a24fb6 /src/leap/bitmask/core
parent9c1eec5551f13306d1745bbb77502c5eba9955a1 (diff)
[bug] improve exception catching in execution loop
Diffstat (limited to 'src/leap/bitmask/core')
-rw-r--r--src/leap/bitmask/core/dispatcher.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/leap/bitmask/core/dispatcher.py b/src/leap/bitmask/core/dispatcher.py
index c026c490..9d486009 100644
--- a/src/leap/bitmask/core/dispatcher.py
+++ b/src/leap/bitmask/core/dispatcher.py
@@ -541,6 +541,7 @@ def _format_error(failure):
# If a exception declares the 'expected' attribute as True,
# we will not print a full traceback
+
expected = getattr(failure.value, 'expected', False)
if not expected:
try: