hstern / dwhois

Distributed WHOIS Client
Other
5 stars 1 forks source link

Unknown date format error #5

Open sergeeximius opened 3 years ago

sergeeximius commented 3 years ago

The first launch and immediately an error

Python 3.9.6 (default, Jun 28 2021, 19:24:41)
[Clang 12.0.5 (clang-1205.0.22.9)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import whois
>>> d = whois.query('eximius.ru')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/ssedov/Work/PyCode/whois-test/.env/lib/python3.9/site-packages/whois/__init__.py", line 42, in query
    return Domain(pd) if pd['domain_name'][0] else None
  File "/Users/ssedov/Work/PyCode/whois-test/.env/lib/python3.9/site-packages/whois/_3_adjust.py", line 15, in __init__
    self.creation_date = str_to_date(data['creation_date'][0])
  File "/Users/ssedov/Work/PyCode/whois-test/.env/lib/python3.9/site-packages/whois/_3_adjust.py", line 95, in str_to_date
    raise ValueError("Unknown date format: '{0}'".format(s))
ValueError: Unknown date format: '1994-04'
hstern commented 3 years ago

Hi Sergey,

this package is abandoned. Feel free to fork.

henry