1
0

Compare commits

...

2 Commits

Author SHA1 Message Date
3ee56f1d57 🤖 Bumped version to 0.1.25
All checks were successful
Package Python / Package (push) Successful in 24s
Run Python tests (through Pytest) / Test (push) Successful in 25s
Python Ruff Code Quality / ruff (push) Successful in 22s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 22s
This commit was automatically generated by a script: https://gitfub.space/Jmaa/repo-manager
2024-10-26 11:28:53 +02:00
0545c9834f
More robust when not configured 2024-10-23 21:03:20 +02:00
2 changed files with 4 additions and 3 deletions

View File

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

View File

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