mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-07 21:58:41 +02:00
Return different return code on KeyboardInterrupt
As I haven't found any good source for choice of exit code, I took value 130 found here: http://tldp.org/LDP/abs/html/exitcodes.html
This commit is contained in:
@@ -78,7 +78,7 @@ def run(prg, argv=None):
|
||||
return 1
|
||||
except KeyboardInterrupt:
|
||||
print('interrupted!', file=sys.stderr)
|
||||
return 1
|
||||
return 130
|
||||
except oscerr.UserAbort:
|
||||
print('aborted.', file=sys.stderr)
|
||||
return 1
|
||||
|
Reference in New Issue
Block a user