浏览代码
fix: handle KeyboardInterrupt exception
Using Ctrl+C to interrupt the program won't display a big ugly error
anymore.
tags/v0.6.1
找不到此签名对应的密钥
GPG 密钥 ID: BC6F3C345B7D33B0
共有
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) |