Open maximeLeurent opened 3 years ago
I was just trying something similar.
>>> isodate.parse_date('202hghf01217gg')
datetime.date(2001, 1, 1)
But, if I throw gibberish on the start of the string, it raises an exception.
>>> isodate.parse_date('gfgf202hghf01217gg')
isodate.isoerror.ISO8601Error: Unrecognised ISO 8601 date format: 'gfgf202hghf01217gg'
Hello,
I found that on some value of string , parse_date do not raise an Exception where it should. As i am using it in json hook it is problematique.
Example:
it does the same for any two (or more) digits number in before "."
Whereas date.fromisoformat do raise an error on those values.
I don't know if you will considere that as an issue.
Regards.