Skip to content

Commit

Permalink
Fix potential AttributeError due to undetected imports when request…
Browse files Browse the repository at this point in the history
…s-cache is bundled in a PyInstaller package
  • Loading branch information
JWCook committed Oct 8, 2022
1 parent 4de9929 commit 170a627
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions HISTORY.md
@@ -1,6 +1,7 @@
# History

## 0.9.7 (Unreleased)
* Fix potential `AttributeError` due to undetected imports when requests-cache is bundled in a PyInstaller package
* Update to cattrs 22.2

## 0.9.6 (2022-08-24)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "requests-cache"
version = "0.9.6"
version = "0.9.7"
description = "A transparent persistent cache for the requests library"
authors = ["Roman Haritonov", "Jordan Cook"]
license = "BSD-2-Clause"
Expand Down
2 changes: 1 addition & 1 deletion requests_cache/__init__.py
Expand Up @@ -2,7 +2,7 @@

# Version is defined in pyproject.toml.
# It's copied here to make it easier for client code to check the installed version.
__version__ = '0.9.6'
__version__ = '0.9.7'

from .backends import *
from .cache_control import *
Expand Down
3 changes: 3 additions & 0 deletions requests_cache/_utils.py
Expand Up @@ -38,6 +38,9 @@ def __getattr__(self, *args, **kwargs):
def dumps(self, *args, **kwargs):
_log_error()

def loads(self, *args, **kwargs):
_log_error()

return Placeholder


Expand Down

0 comments on commit 170a627

Please sign in to comment.