From cf251b1f3375d8c83dcc700a525910a30eeb2076 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Mon, 9 Feb 2026 08:54:59 +0200 Subject: [PATCH] chode: lint --- lnbits/wallets/lightspark.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/lnbits/wallets/lightspark.py b/lnbits/wallets/lightspark.py index d287dfbbf..00dca8c77 100644 --- a/lnbits/wallets/lightspark.py +++ b/lnbits/wallets/lightspark.py @@ -93,11 +93,17 @@ class LightsparkSparkWallet(Wallet): if "error" in error_json: error_message = error_json["error"] except Exception as json_exc: - logger.error(f"Failed to parse Spark error response as JSON: {json_exc}") - raise SparkSidecarError(error_message or f"Spark sidecar request error: '{exc}'") from exc + logger.error( + f"Failed to parse Spark error response as JSON: {json_exc}" + ) + raise SparkSidecarError( + error_message or f"Spark sidecar request error: '{exc}'" + ) from exc if error_message or j.get("error"): - raise SparkSidecarError(error_message or f"Spark sidecar error: {j['error']}") + raise SparkSidecarError( + error_message or f"Spark sidecar error: {j['error']}" + ) return j async def status(self) -> StatusResponse: @@ -158,7 +164,7 @@ class LightsparkSparkWallet(Wallet): async def pay_invoice(self, bolt11: str, fee_limit_msat: int) -> PaymentResponse: try: max_fee_sats = (int(fee_limit_msat) + 999) // 1000 - + payment_hash = None try: payment_hash = bolt11_decode(bolt11).payment_hash