Browse Source

More error-proofing

newworkflow_parseropti
Geoffrey Frogeye 3 years ago
parent
commit
c409c2cf9b
  1. 3
      filter_subdomains.py

3
filter_subdomains.py

@ -37,6 +37,9 @@ def is_subdomain_matching(subdomain: str) -> bool:
except dns.exception.Timeout:
print(f"Timeout for {subdomain}", file=sys.stderr)
return False
except dns.name.EmptyLabel:
print(f"Empty label for {subdomain}", file=sys.stderr)
return False
canonical = query.canonical_name.to_text()
for regex in regexes.REGEXES:
if re.match(regex, canonical):

Loading…
Cancel
Save