mirror of
https://github.com/meshtastic/python.git
synced 2026-09-22 19:55:33 -04:00
Handle NONE errorReason in onResponseTraceRoute and add regression test
ROUTING_APP with errorReason NONE is an ACK (success), not an error. Only print failure message for non-NONE error reasons. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
c71d3df332
commit
953d01206b
2 files changed
+22
-1
No files matched your search
@@ -689,7 +689,8 @@ class MeshInterface: # pylint: disable=R0902
|
||||
"""on response for trace route"""
|
||||
if p["decoded"]["portnum"] == "ROUTING_APP":
|
||||
error = p["decoded"]["routing"]["errorReason"]
|
||||
print(f"Traceroute failed: {error}")
|
||||
if error != "NONE":
|
||||
print(f"Traceroute failed: {error}")
|
||||
self._acknowledgment.receivedTraceRoute = True
|
||||
return
|
||||
|
||||
|
||||
Reference in new issue
Block a user