summaryrefslogtreecommitdiff
path: root/linaropy/handle_exit.py
diff options
context:
space:
mode:
Diffstat (limited to 'linaropy/handle_exit.py')
-rw-r--r--linaropy/handle_exit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/linaropy/handle_exit.py b/linaropy/handle_exit.py
index 7eb4ae1..995d884 100644
--- a/linaropy/handle_exit.py
+++ b/linaropy/handle_exit.py
@@ -51,7 +51,7 @@ def handle_exit(callback=None, append=False):
yield
except KeyboardInterrupt:
pass
- except SystemExit, err:
+ except SystemExit as err:
# code != 0 refers to an application error (e.g. explicit
# sys.exit('some error') call).
# We don't want that to pass silently.