Преглед изворни кода

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 година
родитељ
комит
a7cb46e857
No known key found for this signature in database GPG Key ID: BC6F3C345B7D33B0
1 измењених фајлова са 4 додато и 1 уклоњено
  1. +4
    -1
      kosmorro

+ 4
- 1
kosmorro Прегледај датотеку

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

Loading…
Откажи
Сачувај