Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not swallow PicklingError #1359

Merged
merged 11 commits into from
Feb 15, 2023
3 changes: 3 additions & 0 deletions joblib/_store_backends.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Storage providers backends for Memory caching."""

from pickle import PicklingError
import re
import os
import os.path
Expand Down Expand Up @@ -189,6 +190,8 @@ def write_func(to_write, dest_filename):
compress=self.compress)

self._concurrency_safe_write(item, filename, write_func)
except PicklingError:
Nielius marked this conversation as resolved.
Show resolved Hide resolved
raise
except: # noqa: E722
" Race condition in the creation of the directory "

Expand Down