assert Optional[str]

This commit is contained in:
dni
2022-07-20 08:43:10 +02:00
parent 8e9b3190e4
commit 7ad9ad799e

View File

@@ -55,6 +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)
await mark_webhook_sent(payment, r.status_code)
except (httpx.ConnectError, httpx.RequestError):