fix: Suppress bucket cooldown warnings when cooldown is zero.
@@ -219,6 +219,9 @@ class Request:
if self.ratelimits.get(bucket):
_limiter: Limiter = self.ratelimits.get(bucket)
if _limiter.lock.locked():
+ if (
+ _limiter.reset_after != 0
+ ): # Just saying 0 seconds isn't helpful, so this is suppressed.
log.warning(
f"The current bucket is still under a rate limit. Calling later in {_limiter.reset_after} seconds."
)
