mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-03 18:04:36 +02:00
revert attribute check
This commit is contained in:
@@ -181,7 +181,7 @@ async def api_payments_create_invoice(data: CreateInvoiceData, wallet: Wallet):
|
|||||||
|
|
||||||
lnurl_response: Union[None, bool, str] = None
|
lnurl_response: Union[None, bool, str] = None
|
||||||
if data.lnurl_callback:
|
if data.lnurl_callback:
|
||||||
if hasattr(data, "lnurl_balance_check"):
|
if "lnurl_balance_check" in data:
|
||||||
assert (
|
assert (
|
||||||
data.lnurl_balance_check is not None
|
data.lnurl_balance_check is not None
|
||||||
), "lnurl_balance_check is required"
|
), "lnurl_balance_check is required"
|
||||||
|
Reference in New Issue
Block a user