mirror of
https://github.com/httpie/cli.git
synced 2026-06-20 11:32:56 +02:00
Stricter KeyboardInterrupt silencing
Relates to #531, but doesn't solve it completely.
This commit is contained in:
1 parent
64f6f69037
commit
c6f2b32e36
1 file changed
+5
-2
+5
-2
@@ -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)
|
||||
Reference in new issue
Block a user