Explorar el Código

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 hace 4 años
padre
commit
a7cb46e857
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: BC6F3C345B7D33B0
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. +4
    -1
      kosmorro

+ 4
- 1
kosmorro Ver fichero

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

Cargando…
Cancelar
Guardar