Skip to content

Commit 810dd45

Browse files
committed
Actually fix broken import
1 parent 0b97f9a commit 810dd45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guarddog/analyzer/metadata/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def get_domain_creation_date(domain) -> tuple[Optional[datetime], bool]:
2626

2727
try:
2828
domain_information = whois.whois(domain)
29-
except whois.parser.PywhoisError as e:
29+
except whois.exceptions.PywhoisError as e:
3030
# The domain doesn't exist at all, if that's the case we consider it vulnerable
3131
# since someone could register it
3232
return None, (not str(e).lower().startswith("no match for"))

0 commit comments

Comments
 (0)