]> git.decadent.org.uk Git - dak.git/commitdiff
dak: don't ignore SystemExit
authorJulien Cristau <jcristau@debian.org>
Wed, 27 Apr 2016 08:26:28 +0000 (10:26 +0200)
committerJulien Cristau <jcristau@debian.org>
Mon, 2 May 2016 07:57:12 +0000 (09:57 +0200)
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 <jcristau@debian.org>
dak/dak.py

index c3c7f0de787b97e8c941211b58e2996777649425..191664f04c77e30beba094103785eb1067dd67b6 100755 (executable)
@@ -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]: