From 886c74f205ebb725ec98729a956f5a5bab65c331 Mon Sep 17 00:00:00 2001 From: dni Date: Wed, 20 Jul 2022 08:43:10 +0200 Subject: [PATCH] assert Optional[str] --- lnbits/core/tasks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lnbits/core/tasks.py b/lnbits/core/tasks.py index 5fea769d..8234b5fc 100644 --- a/lnbits/core/tasks.py +++ b/lnbits/core/tasks.py @@ -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):