Skip to content

Commit

Permalink
Fix handling of tmp path checking (#2615)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-S-Rosen authored Jan 10, 2025
1 parent b11bd53 commit 31484cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/quacc/runners/prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def calc_cleanup(
settings = get_settings()

# Safety check
if "tmp-" not in str(tmpdir).name:
if "tmp-" not in tmpdir.name:
msg = f"{tmpdir} does not appear to be a tmpdir... exiting for safety!"
raise ValueError(msg)

Expand Down

0 comments on commit 31484cd

Please sign in to comment.