[molecule] do not print traceback when CTRL+C is pressed

This commit is contained in:
Fabio Erculiani
2009-11-21 23:44:05 +01:00
parent 282d84b57e
commit e7393b789a
+6 -2
View File
@@ -31,8 +31,12 @@ if not molecule_data_order:
for el in molecule_data_order:
my = Runner(el, molecule_data.get(el))
rc = my.run()
try:
rc = my.run()
except KeyboardInterrupt:
my.kill()
raise SystemExit(1)
my.kill()
if rc != 0:
raise SystemExit(rc)
raise SystemExit(0)
raise SystemExit(0)