Skip to content

Commit

Permalink
Check for spelling directory before cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
avylove committed Aug 13, 2020
1 parent 747f828 commit e4f4260
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ def spelling_clean_dir(path):
"""
Remove spelling files from path
"""

if not os.path.isdir(path):
return
for filename in os.listdir(path):
os.unlink(os.path.join(path, filename))

Expand Down

0 comments on commit e4f4260

Please sign in to comment.