fix(reddit_api): fix reddit ratelimit check

This commit is contained in:
2026-04-04 10:20:48 +01:00
parent 5f81c51979
commit 98aa04256b

View File

@@ -188,7 +188,7 @@ class RedditAPI(BaseConnector):
)
if response.status_code == 429:
wait_time = response.headers.get("Retry-After", backoff)
wait_time = response.headers.get("X-Ratelimit-Reset", backoff)
logger.warning(
f"Rate limited by Reddit API. Retrying in {wait_time} seconds..."