Catch some missing key errors

This commit is contained in:
Taylor Helsper 2020-05-26 20:58:31 -05:00
parent 8dd88b8454
commit 10df0c4a71

View File

@ -87,8 +87,10 @@ def page_lnd():
try:
data = get_lightning_info()
height = data['block_height']
pubkey = data['identity_pubkey']
if "block_height" in data:
height = data['block_height']
if "identity_pubkey" in data:
pubkey = data['identity_pubkey']
if "num_peers" in data:
num_peers = data['num_peers']
if "synced_to_chain" in data and data['synced_to_chain']: