Skip to content

Commit 29c810d

Browse files
committed
removed missing_ok parameter from Path.unlink() (was introduced in Python 3.8)
1 parent 904fc4d commit 29c810d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hpc_helper/_hpc_helper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ def cleanup_hpc_status_files(dir_list: Sequence[path_t]):
9191
"""
9292
for dir_path in dir_list:
9393
hpc_status_path = Path(dir_path).joinpath("hpc_status")
94-
hpc_status_path.unlink(missing_ok=True)
94+
if hpc_status_path.exists():
95+
hpc_status_path.unlink()
9596
print("Done with cleanup!")
9697

9798

0 commit comments

Comments
 (0)