mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
LogAnalyzer: If skipping badlines, ignore parse errors
This commit is contained in:
parent
5cb242f5a4
commit
81bd4c0b4c
@ -589,7 +589,8 @@ class DataflashLog(object):
|
||||
self.process(lineNumber, e)
|
||||
except Exception as e:
|
||||
print("BAD LINE: " + line, file=sys.stderr)
|
||||
raise Exception("Error parsing line %d of log file %s - %s" % (lineNumber,self.filename,e.args[0]))
|
||||
if not ignoreBadlines:
|
||||
raise Exception("Error parsing line %d of log file %s - %s" % (lineNumber,self.filename,e.args[0]))
|
||||
return (numBytes,lineNumber)
|
||||
|
||||
def read_binary(self, f, ignoreBadlines):
|
||||
|
Loading…
Reference in New Issue
Block a user