Skip to content

Commit

Permalink
Merge pull request #12 from HelmholtzAI-Consultants-Munich/IsraMekki0…
Browse files Browse the repository at this point in the history
…-patch-1

add try/except when used by joblib
  • Loading branch information
IsraMekki0 authored May 16, 2024
2 parents e9ca8f7 + 44913e5 commit 49f32bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions effidict/lru_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@ def destroy(self):

if not called_by_joblib:
shutil.rmtree(self.storage_path)
else:
try:
shutil.rmtree(self.storage_path)
except:
pass

del self.memory

Expand Down

0 comments on commit 49f32bc

Please sign in to comment.