From 09bfa35cd5c4e5921a76f62a9df16904218b32a2 Mon Sep 17 00:00:00 2001 From: Tiago vasconcelos Date: Mon, 17 Jan 2022 15:38:03 +0000 Subject: [PATCH] avoid voidwallet crash --- lnbits/wallets/void.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lnbits/wallets/void.py b/lnbits/wallets/void.py index 591fa042d..0e37a3698 100644 --- a/lnbits/wallets/void.py +++ b/lnbits/wallets/void.py @@ -1,12 +1,12 @@ -from typing import Optional, AsyncGenerator +from typing import AsyncGenerator, Optional from .base import ( - StatusResponse, InvoiceResponse, PaymentResponse, PaymentStatus, - Wallet, + StatusResponse, Unsupported, + Wallet, ) @@ -20,8 +20,9 @@ class VoidWallet(Wallet): raise Unsupported("") async def status(self) -> StatusResponse: + print("This backend does nothing, it is here just as a placeholder, you must configure an actual backend before being able to do anything useful with LNbits.") return StatusResponse( - "This backend does nothing, it is here just as a placeholder, you must configure an actual backend before being able to do anything useful with LNbits.", + None, 0, )