diff --git a/lnbits/core/crud.py b/lnbits/core/crud.py index efb594a14..8dc506bd2 100644 --- a/lnbits/core/crud.py +++ b/lnbits/core/crud.py @@ -768,7 +768,7 @@ async def get_tinyurl_by_url(url: str) -> List[TinyURL]: async def delete_tinyurl(tinyurl_id: str): - row = await db.execute( + await db.execute( f"DELETE FROM tiny_url WHERE id = ?", (tinyurl_id,), ) diff --git a/lnbits/core/views/api.py b/lnbits/core/views/api.py index 7f6ff4606..aa2ae0db5 100644 --- a/lnbits/core/views/api.py +++ b/lnbits/core/views/api.py @@ -184,7 +184,7 @@ async def api_payments_create_invoice(data: CreateInvoiceData, wallet: Wallet): async with db.connect() as conn: try: - payment_hash, payment_request = await create_invoice( + _, payment_request = await create_invoice( wallet_id=wallet.id, amount=amount, memo=memo, diff --git a/lnbits/helpers.py b/lnbits/helpers.py index 31f736d9b..d611fb907 100644 --- a/lnbits/helpers.py +++ b/lnbits/helpers.py @@ -135,7 +135,7 @@ def get_current_extension_name() -> str: import os callee_filepath = inspect.stack()[1].filename - callee_dirname, callee_filename = os.path.split(callee_filepath) + callee_dirname, _ = os.path.split(callee_filepath) path = os.path.normpath(callee_dirname) extension_director_name = path.split(os.sep)[-1] diff --git a/lnbits/lnurl.py b/lnbits/lnurl.py index 6039545b0..8f5be4ef8 100644 --- a/lnbits/lnurl.py +++ b/lnbits/lnurl.py @@ -3,6 +3,7 @@ from bech32 import bech32_decode, bech32_encode, convertbits def decode(lnurl: str) -> str: hrp, data = bech32_decode(lnurl) + assert hrp assert data bech32_data = convertbits(data, 5, 8, False) assert bech32_data diff --git a/lnbits/wallets/lnbits.py b/lnbits/wallets/lnbits.py index e2ea8e432..74c9efcc5 100644 --- a/lnbits/wallets/lnbits.py +++ b/lnbits/wallets/lnbits.py @@ -97,7 +97,7 @@ class LNbitsWallet(Wallet): json={"out": True, "bolt11": bolt11}, timeout=None, ) - ok, checking_id, fee_msat, preimage, error_message = ( + ok, checking_id, _, _, error_message = ( not r.is_error, None, None,