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:
parent
64f6f69037
commit
c6f2b32e36
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user