From fcc16e27eb36b705bab86a889cfd10b294d70804 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Tue, 18 Jun 2024 23:55:41 -0700 Subject: [PATCH] Update mesh-bot.py --- mesh-bot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mesh-bot.py b/mesh-bot.py index 882871a..507626a 100644 --- a/mesh-bot.py +++ b/mesh-bot.py @@ -9,6 +9,8 @@ import meshtastic.serial_interface #pip install meshtastic import meshtastic.tcp_interface import meshtastic.ble_interface from datetime import datetime +import sys + from solarconditions import * # from the spudgunman/meshing-around repo @@ -150,6 +152,8 @@ def onReceive(packet, interface): except KeyError as e: print(f"System: Error processing packet: {e}") + #get line number of error + print(sys.exc_info()[-1].tb_lineno) print(packet) # print the packet for debugging print("END of packet \n")