diff options
| author | Jordan Cook <jordan.cook@pioneer.com> | 2022-06-29 17:36:27 -0500 |
|---|---|---|
| committer | Jordan Cook <jordan.cook@pioneer.com> | 2022-06-29 17:48:57 -0500 |
| commit | d10c3c2edb55941c7ebaebf257f1d38c273bb3f7 (patch) | |
| tree | c2face004b74f878049e9a55cbf69a082ed298d7 | |
| parent | 52e1ba24beed2fe43bf765f54f904e8b0d701bf3 (diff) | |
| download | requests-cache-0.9.5.tar.gz | |
Remove catching/logging ImportErrors in top-level packagev0.9.5
| -rw-r--r-- | HISTORY.md | 2 | ||||
| -rw-r--r-- | requests_cache/__init__.py | 21 |
2 files changed, 8 insertions, 15 deletions
@@ -1,6 +1,6 @@ # History -## 0.9.5 (Unreleased) +## 0.9.5 (2022-06-29) * Fix usage of memory backend with `install_cache()` * Add `CachedRequest.path_url` property * Add compatibility with cattrs 22.1 diff --git a/requests_cache/__init__.py b/requests_cache/__init__.py index a34bfc9..ebbde0a 100644 --- a/requests_cache/__init__.py +++ b/requests_cache/__init__.py @@ -1,20 +1,13 @@ # flake8: noqa: E402,F401 -from logging import getLogger - -logger = getLogger('requests_cache') # 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.5' -try: - from .backends import * - from .cache_control import * - from .cache_keys import * - from .models import * - from .patcher import * - from .serializers import * - from .session import * -# Log and ignore ImportErrors, if imported outside a virtualenv (e.g., just to check __version__) -except ImportError as e: - logger.warning(e) +from .backends import * +from .cache_control import * +from .cache_keys import * +from .models import * +from .patcher import * +from .serializers import * +from .session import * |
