Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
a7cb46e857
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: BC6F3C345B7D33B0
1 değiştirilmiş dosya ile 4 ekleme ve 1 silme
  1. +4
    -1
      kosmorro

+ 4
- 1
kosmorro Dosyayı Görüntüle

@@ -23,4 +23,7 @@ from kosmorrolib.main import main
locale.setlocale(locale.LC_ALL, '') locale.setlocale(locale.LC_ALL, '')


if __name__ == '__main__': if __name__ == '__main__':
sys.exit(main())
try:
sys.exit(main())
except KeyboardInterrupt:
sys.exit(1)

Yükleniyor…
İptal
Kaydet