1
0
mirror of https://github.com/httpie/cli.git synced 2024-11-28 08:38:44 +02:00

Stricter KeyboardInterrupt silencing

Relates to #531, but doesn't solve it completely.
This commit is contained in:
Jakub Roztocil 2016-10-26 11:16:34 +02:00
parent 64f6f69037
commit c6f2b32e36

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)