cli: propagate system exit codes
Fixes: https://pagure.io/koji/issue/2273
This commit is contained in:
parent
4ae23c1847
commit
c0ffe4ed27
1 changed files with 3 additions and 1 deletions
4
cli/koji
4
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue