Skip to content

Commit

Permalink
Use better exception to avoid import issues on non-Windows platforms (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
niconoe committed Nov 15, 2023
1 parent 5014bf8 commit d52f285
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dwca/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def remove_tree(path, retries=3, sleep=0.1):
for i in range(retries):
try:
rmtree(path, False)
except WindowsError:
except OSError:
time.sleep(sleep)
else:
break

0 comments on commit d52f285

Please sign in to comment.