remove success var
This commit is contained in:
parent
fbafe2b8f1
commit
36952981c2
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue