Sfoglia il codice sorgente

Merge pull request #60 from Deuchnord/fix-KeyboardInterrupt

Handle KeyboardInterrupt exception
tags/v0.6.1
Jérôme Deuchnord 5 anni fa
committed by GitHub
parent
commit
44907bf828
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 4AEE18F83AFDEB23
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. +4
    -1
      kosmorro

+ 4
- 1
kosmorro Vedi File

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

Caricamento…
Annulla
Salva