1
0
mirror of https://github.com/httpie/cli.git synced 2025-08-10 22:42:05 +02:00

Exit with status 130 on CTRL-C

http://www.tldp.org/LDP/abs/html/exitcodes.html

 #531
This commit is contained in:
Jakub Roztocil
2016-10-26 11:53:01 +02:00
parent b96eba336d
commit 9b23a4ac9a
6 changed files with 27 additions and 5 deletions

View File

@@ -10,7 +10,8 @@ def main():
from .core import main
sys.exit(main())
except KeyboardInterrupt:
sys.exit(1)
from . import ExitStatus
sys.exit(ExitStatus.ERROR_CTRL_C)
if __name__ == '__main__':