diff options
author | Jordan Cook <jordan.cook@pioneer.com> | 2022-06-29 17:34:25 -0500 |
---|---|---|
committer | Jordan Cook <jordan.cook@pioneer.com> | 2022-06-29 17:53:57 -0500 |
commit | 79778c6abf950b42c560bf807ade7bacb346ebd1 (patch) | |
tree | bc00f58556226eea87e62a6e610a8f6990f81176 /requests_cache/__init__.py | |
parent | a6bebc3b88f5920af8c95ea860c7d47b733d3651 (diff) | |
download | requests-cache-79778c6abf950b42c560bf807ade7bacb346ebd1.tar.gz |
Remove catching/logging ImportErrors in top-level package
Diffstat (limited to 'requests_cache/__init__.py')
-rw-r--r-- | requests_cache/__init__.py | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/requests_cache/__init__.py b/requests_cache/__init__.py index e8bafb7..96f751b 100644 --- a/requests_cache/__init__.py +++ b/requests_cache/__init__.py @@ -1,18 +1,13 @@ # flake8: noqa: E402,F401 -from logging import getLogger # Version is defined in pyproject.toml. # It's copied here to make it easier for client code to check the installed version. __version__ = '1.0.0' -try: - from .backends import * - from .cache_keys import * - from .models import * - from .patcher import * - from .policy 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: - getLogger('requests_cache').warning(e, exc_info=True) +from .backends import * +from .cache_keys import * +from .models import * +from .patcher import * +from .policy import * +from .serializers import * +from .session import * |