From 2aa4a93da13c2aadb8708fb16b71ddfef810acc4 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Wed, 21 Apr 2021 23:22:29 -0300 Subject: [PATCH] handle empty lnurl-withdraws to redeem. --- lnbits/core/services.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lnbits/core/services.py b/lnbits/core/services.py index 97435f72f..769ac5efd 100644 --- a/lnbits/core/services.py +++ b/lnbits/core/services.py @@ -186,6 +186,9 @@ async def redeem_lnurl_withdraw( wait_seconds: int = 0, conn: Optional[Connection] = None, ) -> None: + if not lnurl_request: + return None + res = {} async with httpx.AsyncClient() as client: