mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-24 13:38:11 +00:00
Improve LND status for more 'no wallet' cases
This commit is contained in:
parent
ba5fa9e3cf
commit
1a3424b159
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user