ソースを参照

fix: handle KeyboardInterrupt exception

Using Ctrl+C to interrupt the program won't display a big ugly error
anymore.
tags/v0.6.1
コミット
a7cb46e857
この署名に対応する既知のキーがデータベースに存在しません GPGキー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)

読み込み中…
キャンセル
保存