imp
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
6 additions and
3 deletions
-
discord/http.py
|
|
@ -743,11 +743,14 @@ class HTTPClient: |
|
|
|
continue |
|
|
|
raise |
|
|
|
|
|
|
|
# We've run out of retries, raise |
|
|
|
if response is not None: |
|
|
|
# We've run out of retries, raise. |
|
|
|
if response.status >= 500: |
|
|
|
raise DiscordServerError(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: |
|
|
|
kwargs = {} |
|
|
|