chore(connector): add buffer to ratelimit reset

This commit is contained in:
2026-04-14 17:41:09 +01:00
parent 76591bc89e
commit 02ba727d05

View File

@@ -234,6 +234,7 @@ class RedditAPI(BaseConnector):
if response.status_code == 429:
try:
wait_time = int(response.headers.get("X-Ratelimit-Reset", backoff))
wait_time += 1 # Add a small buffer to ensure the rate limit has reset
except ValueError:
wait_time = backoff