From c0ffe4ed27c90f421abc86ca029ce80e8aae8ecd Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Thu, 10 Sep 2020 13:44:04 +0200 Subject: [PATCH] cli: propagate system exit codes Fixes: https://pagure.io/koji/issue/2273 --- cli/koji | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/koji b/cli/koji index 3e9c563f..284230ac 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