Przeglądaj źródła

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 lat temu
rodzic
commit
a7cb46e857
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: BC6F3C345B7D33B0
1 zmienionych plików z 4 dodań i 1 usunięć
  1. +4
    -1
      kosmorro

+ 4
- 1
kosmorro Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz