Staging: this is not the live site, pydocs.org.
A subclass of ValueError and IndexError, raised when the given month number is outside of the range 1-12 (inclusive).
Changed in 3.12
- 3.12: IllegalMonthError is now also a subclass of ValueError. New code should avoid catching IndexError.
Members of IllegalMonthError
m
- month
- The invalid month number.