Skip to content

Add typings and error handling - use your library in Home Assistant #260

@Misiu

Description

@Misiu

I'm trying to replace the old and unsupported whois package with your package in Home Assistant (home-assistant/core#135297), but I got a comment against it - home-assistant/core#135297 (review)

Your library was used before and was replaced with the currently unsupported library back in 2022 - home-assistant/core#63227

I would like to hear your opinion about adding typing and error handling to your package.

I saw a helper class that was calling your package and it throws more error based on the response - https://github.com/mkrasowski/homeassistant-core/blob/replace-unmaintained-whois-library/homeassistant/components/whois/helper.py#L36

Is adding exceptions like https://github.com/mboot-github/WhoisDomain/blob/master/whoisdomain/exceptions.py an option?
Sadly the current whois integration in Home Assistant doesn't work well for PL domains (and probably other domains) and doesn't return the expiration date.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions