From edd1f6296784468d629fef0d1ccba874fe38791f Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Wed, 27 Apr 2016 10:26:28 +0200 Subject: [PATCH] dak: don't ignore SystemExit Let the python interpreter handle it and actually exit with the right status, otherwise when a sub-command calls sys.exit(1) we end up exiting 0 instead, which is confusing if not dangerous. Signed-off-by: Julien Cristau --- dak/dak.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dak/dak.py b/dak/dak.py index c3c7f0de..191664f0 100755 --- a/dak/dak.py +++ b/dak/dak.py @@ -228,7 +228,7 @@ def main(): logger.log([msg]) sys.exit(1) except SystemExit: - pass + raise except: if logger: for line in traceback.format_exc().split('\n')[:-1]: -- 2.39.5