瀏覽代碼
Merge pull request #60 from Deuchnord/fix-KeyboardInterrupt
Handle KeyboardInterrupt exception
tags/v0.6.1
Jérôme Deuchnord
5 年之前
committed by
GitHub
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: 4AEE18F83AFDEB23
共有
1 個檔案被更改,包括
4 行新增 和
1 行删除
-
kosmorro
|
|
@@ -23,4 +23,7 @@ from kosmorrolib.main import main |
|
|
|
locale.setlocale(locale.LC_ALL, '') |
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
|
sys.exit(main()) |
|
|
|
try: |
|
|
|
sys.exit(main()) |
|
|
|
except KeyboardInterrupt: |
|
|
|
sys.exit(1) |