From 36952981c21ee235d5997155bf29e2ba2de712b2 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Mon, 21 Feb 2022 09:25:45 +0100 Subject: [PATCH] remove success var --- lnbits/app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lnbits/app.py b/lnbits/app.py index 0043ba651..ca7701677 100644 --- a/lnbits/app.py +++ b/lnbits/app.py @@ -84,8 +84,7 @@ def create_app(config_object="lnbits.settings") -> FastAPI: def check_funding_source(app: FastAPI) -> None: @app.on_event("startup") async def check_wallet_status(): - success = False - while not success: + while True: error_message, balance = await WALLET.status() if not error_message: break