瀏覽代碼

fix: handle KeyboardInterrupt exception

Using Ctrl+C to interrupt the program won't display a big ugly error
anymore.
tags/v0.6.1
Jérôme Deuchnord 4 年之前
父節點
當前提交
a7cb46e857
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: BC6F3C345B7D33B0
共有 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)

Loading…
取消
儲存