diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2017-04-14 20:01:52 +0200 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2017-04-19 20:14:23 +0200 |
commit | e57ed0cd5ba92220e09fe80ab04cce0b3cccfaeb (patch) | |
tree | 68958aee61db4d8906d8b97a3603929d55a24fb6 /src/leap/bitmask/core/dispatcher.py | |
parent | 9c1eec5551f13306d1745bbb77502c5eba9955a1 (diff) |
[bug] improve exception catching in execution loop
Diffstat (limited to 'src/leap/bitmask/core/dispatcher.py')
-rw-r--r-- | src/leap/bitmask/core/dispatcher.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/leap/bitmask/core/dispatcher.py b/src/leap/bitmask/core/dispatcher.py index c026c49..9d48600 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: |