Commit 10b6077f authored by Benjamin Winger's avatar Benjamin Winger

Made cleanup after merge be skipped if an exception was thrown

This should make debugging easier, as we can examine the temp directories to determine the cause of the exception.
This was actually the original behaviour, but it was changed accidently recently.
parent 9f545abc
......@@ -496,13 +496,12 @@ def main():
args.newuse,
args.noreplace or args.update or args.newuse,
)
cleanup()
except Exception as e:
if args.debug:
traceback.print_exc()
err("{}".format(e))
cleanup()
if args.import_mods:
(mod_name, ext) = os.path.splitext(os.path.basename(args.import_mods))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment