diff --git a/molecule.py b/molecule.py index 21efd17..af19be1 100644 --- a/molecule.py +++ b/molecule.py @@ -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) \ No newline at end of file +raise SystemExit(0)