mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Compare commits
2 commits
db61942d1a
...
8bb531385d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8bb531385d | ||
|
|
5112e5da36 |
1 changed files with 1 additions and 1 deletions
|
|
@ -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")',
|
||||
|
|
|
|||
Loading…
Reference in a new issue