Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: handle KeyboardInterrupt exception
Using Ctrl+C to interrupt the program won't display a big ugly error
anymore.
  • Loading branch information
Jérôme Deuchnord committed Mar 8, 2020
1 parent c18a092 commit a7cb46e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kosmorro
Expand Up @@ -23,4 +23,7 @@ from kosmorrolib.main import main
locale.setlocale(locale.LC_ALL, '')

if __name__ == '__main__':
sys.exit(main())
try:
sys.exit(main())
except KeyboardInterrupt:
sys.exit(1)

0 comments on commit a7cb46e

Please sign in to comment.