Skip to content

Handle missing whois for .info, and no response raises an error#293

Merged
richardpenman merged 2 commits intorichardpenman:masterfrom
brondsem:no_info
Oct 1, 2025
Merged

Handle missing whois for .info, and no response raises an error#293
richardpenman merged 2 commits intorichardpenman:masterfrom
brondsem:no_info

Conversation

@brondsem
Copy link
Copy Markdown
Contributor

the whois.iana.org response for .info contains:

whois:        
status:       ACTIVE

so the pattern match was going through the \n and getting status: ACTIVE and used that as a host and got errors. So I've fixed the pattern matching.

Then with no server to use, the whois response ends up empty. I added the raise WhoisError so it is the same behavior as when a subprocess is used and gets no response.

@richardpenman richardpenman merged commit 123e182 into richardpenman:master Oct 1, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants