Skip to content

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

sfp_accounts: Fix False comparison operator

smicallef6e8e6a8277ea
diff --git a/modules/sfp_accounts.py b/modules/sfp_accounts.py
index 65086002..98af816a 100644
--- a/modules/sfp_accounts.py
+++ b/modules/sfp_accounts.py
@@ -90,7 +90,7 @@ class sfp_accounts(SpiderFootPlugin):
self.sf.cachePut("sfaccountsv2", content)
try:
- self.sites = [site for site in json.loads(content)['sites'] if not site.get('valid', True) == False]
+ self.sites = [site for site in json.loads(content)['sites'] if not site.get('valid', True) is False]
except Exception as e:
self.error(f"Unable to parse social media accounts list: {e}")
self.errorState = True