Skip to content
New issue

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

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

Already on GitHub? # to your account

Invalid load key error due to reading .DS_store file on mac #561

Open
dzpt opened this issue Apr 28, 2024 · 0 comments
Open

Invalid load key error due to reading .DS_store file on mac #561

dzpt opened this issue Apr 28, 2024 · 0 comments

Comments

@dzpt
Copy link

dzpt commented Apr 28, 2024

I found an error which is related to #221 and #93

expires = pickle.load(f)
_pickle.UnpicklingError: invalid load key, '\x00'.

After debug i found out because using filesystem caching, flask-caching read .DS_Store file on mac.
cache/.DS_Store
Is there any chance to prevent flask-caching from reading certain file or malformed files like this?

flask-caching 1.8.0
python 3.8

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

No branches or pull requests

1 participant