1
0

Compare commits

..

No commits in common. "3ee56f1d5794dcaae2fe8ee17e574b5bb50ab826" and "bd405b3d5a04f13b85e207c0d530233881d88a60" have entirely different histories.

2 changed files with 3 additions and 4 deletions

View File

@ -79,9 +79,8 @@ def setup_limiter(
Will always return the given session itself.
"""
if requests_ratelimiter and limiter_args:
if requests_ratelimiter:
session.mount(url_prefix, requests_ratelimiter.LimiterAdapter(**limiter_args))
if requests_cache and expire_after:
if settings := getattr(session, 'settings', None):
settings.urls_expire_after[url_prefix] = expire_after
session.settings.urls_expire_after[url_prefix] = expire_after
return session

View File

@ -1 +1 @@
__version__ = '0.1.25'
__version__ = '0.1.24'