mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Allow passing sleep_threshold=0 to always raise flood waits
This commit is contained in:
parent
eed3221ecb
commit
582e29dece
1 changed files with 1 additions and 1 deletions
|
|
@ -442,7 +442,7 @@ class Session:
|
|||
except FloodWait as e:
|
||||
amount = e.x
|
||||
|
||||
if amount > sleep_threshold > 0:
|
||||
if amount > sleep_threshold >= 0:
|
||||
raise
|
||||
|
||||
log.warning(f'[{self.client.session_name}] Sleeping for {amount}s (required by "{query}")')
|
||||
|
|
|
|||
Loading…
Reference in a new issue