Browse Source

Revert running out of retries

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

7
discord/http.py

@ -743,10 +743,13 @@ class HTTPClient:
continue continue
raise raise
# We've run out of retries, raise
if response is not None: if response is not None:
# We've run out of retries, raise.
if response.status >= 500:
raise DiscordServerError(response, data)
raise HTTPException(response, data) raise HTTPException(response, data)
else:
raise RuntimeError('Unreachable code in HTTP handling') raise RuntimeError('Unreachable code in HTTP handling')
async def get_from_cdn(self, url: str) -> bytes: async def get_from_cdn(self, url: str) -> bytes:

Loading…
Cancel
Save