wmlxgettext and wmlindent change exit code
For keyboard interrupt change exit code from 0 to 1.
This commit is contained in:
parent
528ea56424
commit
24098cb54a
2 changed files with 2 additions and 2 deletions
|
@ -309,7 +309,7 @@ def sigint_handler(signal, frame):
|
|||
This overrides Python's default behavior of displaying a traceback when ctrl-c is pressed.
|
||||
"""
|
||||
print ('Aborted by pressing ctrl-c')
|
||||
sys.exit(0)
|
||||
sys.exit(1)
|
||||
|
||||
if __name__ == '__main__':
|
||||
signal.signal(signal.SIGINT, sigint_handler)
|
||||
|
|
|
@ -273,7 +273,7 @@ def sigint_handler(signal, frame):
|
|||
This overrides Python's default behavior of displaying a traceback when ctrl-c is pressed.
|
||||
"""
|
||||
print ('Aborted by pressing ctrl-c')
|
||||
sys.exit(0)
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue