aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXua <[email protected]>2019-10-19 21:40:19 +1300
committerRapptz <[email protected]>2019-10-20 05:20:15 -0400
commit4c3e53edf4ff90e3fcf195c429601a553d661cd8 (patch)
tree50154807f85ff19da5aa3e0a6dad81aae73fffe1
parent[docs] category_id is Optional (diff)
downloaddiscord.py-4c3e53edf4ff90e3fcf195c429601a553d661cd8.tar.xz
discord.py-4c3e53edf4ff90e3fcf195c429601a553d661cd8.zip
Fix webhooks not re-raising after retries run out
-rw-r--r--discord/webhook.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/discord/webhook.py b/discord/webhook.py
index e06b6281..00e15429 100644
--- a/discord/webhook.py
+++ b/discord/webhook.py
@@ -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: