only make it fallback when adminui is enabled

This commit is contained in:
dni ⚡ 2023-03-02 12:07:20 +01:00
parent e93fbd24be
commit 8410776ffb
No known key found for this signature in database
GPG Key ID: 886317704CC4E618

View File

@ -127,7 +127,7 @@ async def check_funding_source() -> None:
except:
pass
if retry_counter == timeout:
if settings.lnbits_admin_ui and retry_counter == timeout:
logger.warning(
f"Fallback to VoidWallet, because the backend for {WALLET.__class__.__name__} isn't working properly"
)