This commit is contained in:
fr0stb1rd 2025-12-19 04:46:14 +03:00 committed by GitHub
commit db61942d1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -421,7 +421,7 @@ class Session:
except (FloodWait, FloodPremiumWait) as e:
amount = e.value
if amount > sleep_threshold >= 0:
if sleep_threshold < 0 or amount > sleep_threshold:
raise
log.warning('[%s] Waiting for %s seconds before continuing (required by "%s")',