Stricter KeyboardInterrupt silencing

Relates to #531, but doesn't solve it completely.
This commit is contained in:
Jakub Roztocil committed 2016-10-26 11:16:39 +02:00
1 parent 64f6f69037
commit c6f2b32e36
1 file changed
+5 -2
+5 -2
View File
@@ -3,8 +3,11 @@
"""
import sys
from .core import main
if __name__ == '__main__':
sys.exit(main())
try:
from .core import main
sys.exit(main())
except KeyboardInterrupt:
sys.exit(1)