chore: adhere to ruff's C (#2379)

This commit is contained in:
dni ⚡
2024-04-03 17:56:05 +02:00
committed by GitHub
parent cd66b7d70c
commit e0b7d2f739
10 changed files with 43 additions and 41 deletions
+1 -1
View File
@@ -393,7 +393,7 @@ async def subscribe_wallet_invoices(request: Request, wallet: Wallet):
payment: Payment = await payment_queue.get()
if payment.wallet_id == this_wallet_id:
logger.debug("sse listener: payment received", payment)
yield dict(data=payment.json(), event="payment-received")
yield {"data": payment.json(), "event": "payment-received"}
except asyncio.CancelledError:
logger.debug(f"removing listener for wallet {uid}")
except Exception as exc: