Skip to content
This repository was archived by the owner on Feb 3, 2024. It is now read-only.

Commit d7cf297

Browse files
committed
add todo for very short but valid responses; currently they are teated as error response
1 parent 5734274 commit d7cf297

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

whois/_2_parse.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,16 @@ def handleShortResponse(
118118
d = ".".join(dl)
119119
print(f"line count < 5:: {tld} {d} {whois_str}", file=sys.stderr)
120120

121+
# TODO: some short responses are actually valid:
122+
# lookfor Domain: and Status but all other fields are missing so the regexec could fail
123+
# this domain is taken already or reserved
124+
125+
# whois syswow.64-b.it
126+
# [Querying whois.nic.it]
127+
# [whois.nic.it]
128+
# Domain: syswow.64-b.it
129+
# Status: UNASSIGNABLE
130+
121131
s = whois_str.strip().lower()
122132

123133
# NOTE: from here s is lowercase only

0 commit comments

Comments
 (0)