Skip to content

Commit

Permalink
Adding PostfitError to context manager
Browse files Browse the repository at this point in the history
  • Loading branch information
siranipour committed Apr 15, 2021
1 parent 1c493ed commit 523068e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validphys2/src/validphys/scripts/postfit.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def _postfit(results: str, nrep: int, chi2_threshold: float, arclength_threshold
with tempfile_cleaner(
root=result_path,
exit_func=shutil.move,
exc=KeyboardInterrupt,
exc=(KeyboardInterrupt, PostfitError),
prefix="postfit_work_deleteme_",
dst=final_postfit_path,
) as postfit_path:
Expand Down

0 comments on commit 523068e

Please sign in to comment.