Commit c6e29aab authored by Thomas Schwarzl's avatar Thomas Schwarzl

added exit code for keyboard interrupt

parent ea604aeb
...@@ -291,6 +291,7 @@ if __name__ == '__main__': ...@@ -291,6 +291,7 @@ if __name__ == '__main__':
except KeyboardInterrupt as exception: # Control - C except KeyboardInterrupt as exception: # Control - C
print("Program was stopped. (Ctrl + C / KeyboardInterrupt)") print("Program was stopped. (Ctrl + C / KeyboardInterrupt)")
sys.stderr.close() sys.stderr.close()
os._exit(1)
except SystemExit as exception: except SystemExit as exception:
raise exception raise exception
except Exception as exception: except Exception as exception:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment