Compare commits
No commits in common. "3ee56f1d5794dcaae2fe8ee17e574b5bb50ab826" and "bd405b3d5a04f13b85e207c0d530233881d88a60" have entirely different histories.
3ee56f1d57
...
bd405b3d5a
|
@ -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
|
||||
|
|
|
@ -1 +1 @@
|
|||
__version__ = '0.1.25'
|
||||
__version__ = '0.1.24'
|
||||
|
|
Loading…
Reference in New Issue
Block a user