浏览代码

Merge pull request #60 from Deuchnord/fix-KeyboardInterrupt

Handle KeyboardInterrupt exception
tags/v0.6.1
Jérôme Deuchnord 5 年前
committed by GitHub
父节点
当前提交
44907bf828
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      kosmorro

+ 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)

正在加载...
取消
保存