fix to prevent exceptions from bubbling up from gpx parser

This commit is contained in:
Greg DiCristofaro 2020-05-28 11:30:29 -04:00
parent f6eee25167
commit 5b3503f560

View File

@ -236,7 +236,8 @@ class GPXParserFileIngestModule(FileIngestModule):
Waypoint(point.latitude, point.longitude, point.elevation, point.name)) Waypoint(point.latitude, point.longitude, point.elevation, point.name))
try: try:
geoArtifactHelper.addRoute(None, None, geoWaypoints, None) if not geoWaypoints.isEmpty():
geoArtifactHelper.addRoute(None, None, geoWaypoints, None)
except Blackboard.BlackboardException as e: except Blackboard.BlackboardException as e:
self.log("Error posting GPS route artifact for " + file.getUniquePath() + self.log("Error posting GPS route artifact for " + file.getUniquePath() +
" (objID = " + str(file.getId()) + "):" + e.getMessage()) " (objID = " + str(file.getId()) + "):" + e.getMessage())