Skip to content

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

@dzpt

Description

@dzpt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions