remove asserts and add ignore instead for now

This commit is contained in:
dni
2022-07-27 09:39:52 +02:00
parent 347baa076a
commit 7da496dbb4
2 changed files with 15 additions and 20 deletions
+1 -2
View File
@@ -55,8 +55,7 @@ async def dispatch_webhook(payment: Payment):
data = payment.dict()
try:
logger.debug("sending webhook", payment.webhook)
assert payment.webhook is not None
r = await client.post(payment.webhook, json=data, timeout=40)
r = await client.post(payment.webhook, json=data, timeout=40) # type: ignore
await mark_webhook_sent(payment, r.status_code)
except (httpx.ConnectError, httpx.RequestError):
await mark_webhook_sent(payment, -1)