wmlxgettext and wmlindent change exit code

For keyboard interrupt change exit code from 0 to 1.
This commit is contained in:
Alexander Lacson 2022-02-09 16:12:30 +08:00 committed by Elvish_Hunter
parent 528ea56424
commit 24098cb54a
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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)