assert Optional[str]
This commit is contained in:
parent
91c5a68ccc
commit
886c74f205
1 changed files with 1 additions and 0 deletions
|
|
@ -55,6 +55,7 @@ async def dispatch_webhook(payment: Payment):
|
||||||
data = payment.dict()
|
data = payment.dict()
|
||||||
try:
|
try:
|
||||||
logger.debug("sending webhook", payment.webhook)
|
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)
|
||||||
await mark_webhook_sent(payment, r.status_code)
|
await mark_webhook_sent(payment, r.status_code)
|
||||||
except (httpx.ConnectError, httpx.RequestError):
|
except (httpx.ConnectError, httpx.RequestError):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue