mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 12:18:59 +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)
|
||||
else:
|
||||
raise HTTPException(r, response)
|
||||
# no more retries
|
||||
raise HTTPException(r, response)
|
||||
|
||||
async def handle_execution_response(self, response, *, wait):
|
||||
data = await response
|
||||
@ -308,6 +310,8 @@ class RequestsWebhookAdapter(WebhookAdapter):
|
||||
raise NotFound(r, response)
|
||||
else:
|
||||
raise HTTPException(r, response)
|
||||
# no more retries
|
||||
raise HTTPException(r, response)
|
||||
|
||||
def handle_execution_response(self, response, *, wait):
|
||||
if not wait:
|
||||
|
Loading…
x
Reference in New Issue
Block a user