diff options
| author | Jordan Cook <jordan.cook@pioneer.com> | 2021-06-20 17:32:00 -0500 |
|---|---|---|
| committer | Jordan Cook <jordan.cook@pioneer.com> | 2021-06-20 17:32:01 -0500 |
| commit | e820157506301dd4170e99c4205bd179a1f8b25b (patch) | |
| tree | f8fd9c4244377f07db2cd9be47c4ae3172e7d2ba /requests_cache/backends/base.py | |
| parent | 9d979d80edc1eafb99dd371ae76595b8212b471d (diff) | |
| download | requests-cache-e820157506301dd4170e99c4205bd179a1f8b25b.tar.gz | |
Add ImportError to list of possible deserialization errors to catch
See issue #296
Diffstat (limited to 'requests_cache/backends/base.py')
| -rw-r--r-- | requests_cache/backends/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/requests_cache/backends/base.py b/requests_cache/backends/base.py index e3682e3..795b5b3 100644 --- a/requests_cache/backends/base.py +++ b/requests_cache/backends/base.py @@ -15,7 +15,7 @@ from ..models.response import AnyResponse, CachedResponse from ..serializers import init_serializer # Specific exceptions that may be raised during deserialization -DESERIALIZE_ERRORS = (AttributeError, TypeError, ValueError, pickle.PickleError) +DESERIALIZE_ERRORS = (AttributeError, ImportError, TypeError, ValueError, pickle.PickleError) ResponseOrKey = Union[CachedResponse, str] logger = getLogger(__name__) |
