Преглед изворни кода
Merge pull request #60 from Deuchnord/fix-KeyboardInterrupt
Handle KeyboardInterrupt exception
tags/v0.6.1
Jérôme Deuchnord
пре 5 година
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 измењених фајлова са
4 додато и
1 уклоњено
-
kosmorro
|
|
@@ -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) |