Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

sfp_crt: Return if JSON parsing fails (#1395)

bcoles319da8b81d63
diff --git a/modules/sfp_crt.py b/modules/sfp_crt.py
index 2aace393..46d42d37 100644
--- a/modules/sfp_crt.py
+++ b/modules/sfp_crt.py
@@ -103,6 +103,7 @@ class sfp_crt(SpiderFootPlugin):
data = json.loads(res['content'])
except Exception as e:
self.sf.debug(f"Error processing JSON response: {e}")
+ return
if data is None or len(data) == 0:
return