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

.se updated date parsing error #302

Closed
Aeonian9 opened this issue Apr 3, 2023 · 2 comments
Closed

.se updated date parsing error #302

Aeonian9 opened this issue Apr 3, 2023 · 2 comments

Comments

@Aeonian9
Copy link

Aeonian9 commented Apr 3, 2023

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
Copy link
Collaborator

fixed in #303

@maarten-boot
Copy link
Collaborator

i expect this can be closed ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants