imp
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
discord/http.py
|
@ -441,7 +441,7 @@ class Ratelimit: |
|
|
continue |
|
|
continue |
|
|
break |
|
|
break |
|
|
else: |
|
|
else: |
|
|
raise ValueError('Global reset at changed more than 3 times') |
|
|
raise RuntimeError('Global reset at changed more than 3 times') |
|
|
|
|
|
|
|
|
async def _wait(self): |
|
|
async def _wait(self): |
|
|
# Consider waiting if none is remaining |
|
|
# Consider waiting if none is remaining |
|
@ -476,7 +476,7 @@ class Ratelimit: |
|
|
continue # sleep again |
|
|
continue # sleep again |
|
|
break |
|
|
break |
|
|
else: |
|
|
else: |
|
|
raise ValueError('Reset at changed more than 3 times') |
|
|
raise RuntimeError('Reset at changed more than 3 times') |
|
|
|
|
|
|
|
|
async def acquire(self): |
|
|
async def acquire(self): |
|
|
start_time: float = self.http.loop.time() |
|
|
start_time: float = self.http.loop.time() |
|
|