diff --git a/lnbits/extensions/lnurlp/crud.py b/lnbits/extensions/lnurlp/crud.py index 83607396f..4acb4a41e 100644 --- a/lnbits/extensions/lnurlp/crud.py +++ b/lnbits/extensions/lnurlp/crud.py @@ -46,6 +46,7 @@ async def create_pay_link(data: CreatePayLinkData, wallet_id: str) -> PayLink: data.fiat_base_multiplier, ), ) + assert result link = await get_pay_link(link_id) assert link, "Newly created link couldn't be retrieved" diff --git a/lnbits/extensions/subdomains/tasks.py b/lnbits/extensions/subdomains/tasks.py index 8cadcad0d..aef4b49b1 100644 --- a/lnbits/extensions/subdomains/tasks.py +++ b/lnbits/extensions/subdomains/tasks.py @@ -54,5 +54,6 @@ async def on_invoice_paid(payment: Payment) -> None: }, timeout=40, ) + assert r except AssertionError: pass