Fix webhooks not re-raising after retries run out

This commit is contained in:
Xua
2019-10-20 05:20:15 -04:00
committed by Rapptz
parent 30c9e33384
commit 4c3e53edf4
+4
View File
@@ -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: