mirror of
https://github.com/lnbits/lnbits.git
synced 2025-06-28 17:50:56 +02:00
remove success var
This commit is contained in:
parent
fbafe2b8f1
commit
36952981c2
@ -84,8 +84,7 @@ def create_app(config_object="lnbits.settings") -> FastAPI:
|
|||||||
def check_funding_source(app: FastAPI) -> None:
|
def check_funding_source(app: FastAPI) -> None:
|
||||||
@app.on_event("startup")
|
@app.on_event("startup")
|
||||||
async def check_wallet_status():
|
async def check_wallet_status():
|
||||||
success = False
|
while True:
|
||||||
while not success:
|
|
||||||
error_message, balance = await WALLET.status()
|
error_message, balance = await WALLET.status()
|
||||||
if not error_message:
|
if not error_message:
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user