Improve LND status for more 'no wallet' cases

This commit is contained in:
Taylor Helsper 2021-06-30 23:05:41 -05:00
parent ba5fa9e3cf
commit 1a3424b159

View File

@ -487,6 +487,10 @@ def get_lnd_status():
elif "wallet unlock password file was specified but wallet does not exist" in line:
return "Config Error"
# Check if no wallet file (log may have been rotated out, so can't get more accurate message)
if not lnd_wallet_exists():
return "Please create wallet..."
return "Waiting..."
except:
return "Status Error"