diff --git a/effidict/lru_dict.py b/effidict/lru_dict.py index 10a5c28..9166983 100644 --- a/effidict/lru_dict.py +++ b/effidict/lru_dict.py @@ -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