Przeglądaj źródła

Merge pull request #60 from Deuchnord/fix-KeyboardInterrupt

Handle KeyboardInterrupt exception
tags/v0.6.1
Jérôme Deuchnord 4 lat temu
committed by GitHub
rodzic
commit
44907bf828
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 4AEE18F83AFDEB23
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