mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 20:28:38 +00:00
Fix webhooks not re-raising after retries run out
This commit is contained in:
parent
30c9e33384
commit
4c3e53edf4
@ -222,6 +222,8 @@ class AsyncWebhookAdapter(WebhookAdapter):
|
|||||||
raise NotFound(r, response)
|
raise NotFound(r, response)
|
||||||
else:
|
else:
|
||||||
raise HTTPException(r, response)
|
raise HTTPException(r, response)
|
||||||
|
# no more retries
|
||||||
|
raise HTTPException(r, response)
|
||||||
|
|
||||||
async def handle_execution_response(self, response, *, wait):
|
async def handle_execution_response(self, response, *, wait):
|
||||||
data = await response
|
data = await response
|
||||||
@ -308,6 +310,8 @@ class RequestsWebhookAdapter(WebhookAdapter):
|
|||||||
raise NotFound(r, response)
|
raise NotFound(r, response)
|
||||||
else:
|
else:
|
||||||
raise HTTPException(r, response)
|
raise HTTPException(r, response)
|
||||||
|
# no more retries
|
||||||
|
raise HTTPException(r, response)
|
||||||
|
|
||||||
def handle_execution_response(self, response, *, wait):
|
def handle_execution_response(self, response, *, wait):
|
||||||
if not wait:
|
if not wait:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user