Skip to content

Commit

Permalink
Writing the traceback for errors caught to iterdir/stderr.out to help…
Browse files Browse the repository at this point in the history
… debugging.
  • Loading branch information
paulsaxe committed Jan 16, 2022
1 parent 892bc33 commit 87a1ef8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions loop_step/loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,8 @@ def run(self):
printer.job(
f"Caught exception in loop iteration {self._loop_value}: {str(e)}"
)
with open(iter_dir / "stderr.out", "a") as fd:
traceback.print_exc(file=fd)
if "continue" in P["errors"]:
next_node = self
elif "exit" in P["errors"]:
Expand Down

0 comments on commit 87a1ef8

Please sign in to comment.