From c0ffe4ed27c90f421abc86ca029ce80e8aae8ecd Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Sep 15 2020 14:11:01 +0000 Subject: cli: propagate system exit codes Fixes: https://pagure.io/koji/issue/2273 --- diff --git a/cli/koji b/cli/koji index 3e9c563..284230a 100755 --- a/cli/koji +++ b/cli/koji @@ -337,8 +337,10 @@ if __name__ == "__main__": rv = locals()[command].__call__(options, session, args) if not rv: rv = 0 - except (KeyboardInterrupt, SystemExit): + except KeyboardInterrupt: rv = 1 + except SystemExit: + raise except Exception: if options.debug: raise