mboot-github / python-whois

Python module/library for retrieving domain WHOIS information (only domain)
https://pypi.org/project/whois/
MIT License
289 stars 136 forks source link

.se updated date parsing error #302

Closed Aeonian9 closed 1 year ago

Aeonian9 commented 1 year ago

Describe the bug

.se domain whois query fails to parse '-' modified date and raises UnknownDateFormat exception.

To Reproduce

Steps to reproduce the behavior:

>>> import whois
>>> whois.query('amcon.se')
we have se
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.10/site-packages/whois/__init__.py", line 289, in query
    return Domain(
  File "/usr/local/lib/python3.10/site-packages/whois/_3_adjust.py", line 57, in __init__
    self.last_updated = str_to_date(data["updated_date"][0], self.tld.lower())
  File "/usr/local/lib/python3.10/site-packages/whois/_3_adjust.py", line 228, in str_to_date
    raise UnknownDateFormat("Unknown date format: '%s'" % text)
whois.exceptions.UnknownDateFormat: Unknown date format: '-'
maarten-boot commented 1 year ago

fixed in #303

maarten-boot commented 1 year ago

i expect this can be closed ?