From 7af52572e011314750c2020b044cc0f4659e9516 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sun, 6 Oct 2024 16:50:38 -0700 Subject: [PATCH] enhance --- mesh_bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mesh_bot.py b/mesh_bot.py index 84bbf76..bfe5ef2 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -962,9 +962,11 @@ def onReceive(packet, interface): numPacketsRx = (localStats['numPacketsRx'], rxNode) try: numPacketsTxErr = (localStats['numPacketsTxErr'], rxNode) - numPacketsRxErr = (localStats['numPacketsRxErr'], rxNode) except KeyError: numPacketsTxErr = (-1, rxNode) + try: + numPacketsRxErr = (localStats['numPacketsRxErr'], rxNode) + except KeyError: numPacketsRxErr = (-1, rxNode) #airUtilTx = (round(localStats['airUtilTx'], 2), rxNode)