Skip to content
Snippets Groups Projects
Commit a66a25b8 authored by Bart Slinger's avatar Bart Slinger Committed by Beat Küng
Browse files

sdlog2_dump.py skip unknown message type

parent 80c348d3
No related branches found
No related tags found
No related merge requests found
......@@ -142,9 +142,13 @@ class SDLog2Parser:
self.__parseMsgDescr()
else:
# parse data message
msg_descr = self.__msg_descrs[msg_type]
msg_descr = self.__msg_descrs.get(msg_type, None)
if msg_descr == None:
raise Exception("Unknown msg type: %i" % msg_type)
if self.__correct_errors:
self.__ptr += 1
continue
else:
raise Exception("Unknown msg type: %i" % msg_type)
msg_length = msg_descr[0]
if self.__bytesLeft() < msg_length:
break
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment