~bluesabre/sgt-launcher/import

« back to all changes in this revision

Viewing changes to sgtlauncher/__init__.py

  • Committer: Sean Davis
  • Date: 2020-01-20 23:59:20 UTC
  • Revision ID: git-v1:59e4a82edacfb1dadec2b0b8266ef51cd64accbb
Allow application shutdown with Ctrl-C in terminal

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
    # Run the application.
42
42
    app = SgtLauncher.MyApplication()
43
 
    exit_status = app.run(None)
 
43
    try:
 
44
        exit_status = app.run(None)
 
45
    except KeyboardInterrupt:
 
46
        exit_status = 130
44
47
    sys.exit(exit_status)