From: Julien Cristau Date: Wed, 27 Apr 2016 08:26:28 +0000 (+0200) Subject: dak: don't ignore SystemExit X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=edd1f6296784468d629fef0d1ccba874fe38791f;p=dak.git 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 --- 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]: