Skip to content

Commit

Permalink
Minor fix. shutil.rmtree is for directories...
Browse files Browse the repository at this point in the history
  • Loading branch information
biomadeira committed Sep 6, 2017
1 parent da94f07 commit f754aa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prointvar/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def create_directory(directory):

def lazy_file_remover(filename):
if os.path.exists(filename):
shutil.rmtree(filename)
os.remove(filename)


def flash(message):
Expand Down

0 comments on commit f754aa2

Please sign in to comment.