summaryrefslogtreecommitdiff
path: root/obnam
diff options
context:
space:
mode:
Diffstat (limited to 'obnam')
-rwxr-xr-xobnam2
1 files changed, 2 insertions, 0 deletions
diff --git a/obnam b/obnam
index aaf5b23f..c8845fc7 100755
--- a/obnam
+++ b/obnam
@@ -26,6 +26,8 @@ except obnamlib.AppException, e:
logging.critical(str(e))
sys.stderr.write('Error: %s\n' % str(e))
sys.exit(1)
+except SystemExit, e:
+ sys.exit(e.code)
except BaseException, e:
logging.critical(traceback.format_exc())
sys.stderr.write(traceback.format_exc())