Skip to content

Commit

Permalink
don't die if the cache dir doesn't exist (#707)
Browse files Browse the repository at this point in the history
  • Loading branch information
dham authored Aug 29, 2023
1 parent 92e756b commit 8e4ad93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyop2/compilation.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,6 @@ def clear_cache(prompt=False):

if remove:
print(f"Removing cached libraries from {cachedir}")
shutil.rmtree(cachedir)
shutil.rmtree(cachedir, ignore_errors=True)
else:
print("Not removing cached libraries")

0 comments on commit 8e4ad93

Please sign in to comment.