From 05a1d43bb69280a0dff223bbaf66f7944b4190db Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 19 Jun 2024 00:16:45 -0700 Subject: [PATCH] Update mesh-bot.py --- mesh-bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mesh-bot.py b/mesh-bot.py index 3e1cef9..b4d9f72 100644 --- a/mesh-bot.py +++ b/mesh-bot.py @@ -189,12 +189,13 @@ def get_node_list(): #ignore own if node['num'] != myNodeNum: node_name = get_name_from_number(node['num']) + try: last_heard = node['lastHeard'] except Exception as e: - print(f"System: Error getting node list: {e}") last_heard = 0 item = (node_name,last_heard) + node_list.append(item) #return only the last 5 nodes return node_list[:5]