[molecule] do not print traceback when CTRL+C is pressed
This commit is contained in:
+6
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user