Skip to content

Commit a1ecb20

Browse files
committed
fix: ensure string of path is used for removal
1 parent 3664af6 commit a1ecb20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

heudiconv/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,4 +332,4 @@ def clear_temp_dicoms(item_dicoms):
332332
and str(tmp.stem).startswith('heudiconvDCM')
333333
and op.exists(str(tmp))):
334334
# clean up directory holding dicoms
335-
shutil.rmtree(tmp)
335+
shutil.rmtree(str(tmp))

0 commit comments

Comments
 (0)