Loosely error-proofed subdomain collection

This commit is contained in:
Geoffrey Frogeye 2019-11-10 23:22:21 +01:00
parent ed72f643fd
commit b81c7c17ee

View file

@ -44,8 +44,11 @@ def collect_subdomains_standalone(url: str) -> None:
url = url.strip() url = url.strip()
if not url: if not url:
return return
for subdomain in collect_subdomains(url): try:
print(subdomain) for subdomain in collect_subdomains(url):
print(subdomain)
except:
pass
if __name__ == '__main__': if __name__ == '__main__':