Parcourir la source
fix: handle KeyboardInterrupt exception
Using Ctrl+C to interrupt the program won't display a big ugly error
anymore.
tags/v0.6.1
Parent
révision
a7cb46e857
Aucune clé connue n'a été trouvée dans la base pour cette signature
ID de la clé GPG: BC6F3C345B7D33B0
1 fichiers modifiés avec
4 ajouts et
1 suppressions
-
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) |