Skip to content

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

Handle other types of exceptions without failing.

Steve899c88f5b132
diff --git a/modules/sfp_dnscommonsrv.py b/modules/sfp_dnscommonsrv.py
index 44981281..0ec930b7 100644
--- a/modules/sfp_dnscommonsrv.py
+++ b/modules/sfp_dnscommonsrv.py
@@ -114,7 +114,7 @@ class sfp_dnscommonsrv(SpiderFootPlugin):
try:
answers = dns.resolver.query(name, 'SRV')
- except (dns.resolver.NXDOMAIN, dns.resolver.NoAnswer):
+ except BaseException as e:
answers = []
for a in answers: