Browse Source

Change ValueError to RuntimeError

pull/10287/head
imp 2 months ago
committed by GitHub
parent
commit
cb86732f12
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      discord/http.py

4
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()

Loading…
Cancel
Save