diff --git a/snode/scripts/rpi_log_script_v4.py b/snode/scripts/rpi_log_script_v4.py index 95681bc..9a56fd4 100644 --- a/snode/scripts/rpi_log_script_v4.py +++ b/snode/scripts/rpi_log_script_v4.py @@ -309,8 +309,11 @@ def main(): print("SerialInterface setup for listening.") # Subscribe to the data topic - pub.subscribe(on_receive, "meshtastic.receive") - print("Subscribed to meshtastic.receive") + try: + pub.subscribe(on_receive, "meshtastic.receive") + print("Subscribed to meshtastic.receive") + except Exception as e: + print(f"Unable to subscribe: {e}") # Print the current active threads print("----\nAfter subscribing to meshtastic.receive, the thread information is as follows:")