-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Getting the word of the day fails while deserializing date times, with the stacktrace below
>>> wordoftheday_api.getWordOfTheDay()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/codespace/.local/lib/python3.12/site-packages/wordnik/WordsApi.py", line 141, in getWordOfTheDay
responseObject = self.apiClient.deserialize(response, 'WordOfTheDay')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/codespace/.local/lib/python3.12/site-packages/wordnik/swagger.py", line 164, in deserialize
setattr(instance, attr, datetime.datetime.strptime(value[:-5],
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/python/3.12.1/lib/python3.12/_strptime.py", line 555, in _strptime_datetime
tt, fraction, gmtoff_fraction = _strptime(data_string, format)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/python/3.12.1/lib/python3.12/_strptime.py", line 333, in _strptime
raise ValueError("time data %r does not match format %r" %
ValueError: time data '2025-03-02T03:00:00' does not match format '%Y-%m-%dT%H:%M:%S.%f'Metadata
Metadata
Assignees
Labels
No labels