SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Handle failures.
Steve Micallef5017c9fcc745
diff --git a/modules/sfp_openstreetmap.py b/modules/sfp_openstreetmap.pyindex b905bb61..6c5a5a78 100644--- a/modules/sfp_openstreetmap.py+++ b/modules/sfp_openstreetmap.py@@ -108,8 +108,12 @@ class sfp_openstreetmap(SpiderFootPlugin):self.sf.info("Found " + str(len(data)) + " matches for " + eventData)for location in data:- lat = location.get('lat')- lon = location.get('lon')+ try:+ lat = location.get('lat')+ lon = location.get('lon')+ except BaseException as e:+ self.sf.debug("Failed to get lat/lon: " + str(e))+ continueif not lat or not lon:continue