Skip to content

Commit f754aa2

Browse files
committed
Minor fix. shutil.rmtree is for directories...
1 parent da94f07 commit f754aa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prointvar/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def create_directory(directory):
9393

9494
def lazy_file_remover(filename):
9595
if os.path.exists(filename):
96-
shutil.rmtree(filename)
96+
os.remove(filename)
9797

9898

9999
def flash(message):

0 commit comments

Comments
 (0)