| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
… month.
The presence of the values in the error message gives a stronger hint as
to what went wrong.
```
>>> datetime.strptime("2.29", "%m.%d")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
datetime.strptime("2.29", "%m.%d")
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File ".../Lib/_strptime.py", line 565, in _strptime_datetime
return cls(*args)
~~~^^^^^^^
ValueError: day 29 is out of range for month 2 in year 1900
```
|
+1 on the principle, but ideally there would be a test for this. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The presence of the values in the error message gives a stronger hint as to what went wrong.