PyDocs

Nav

Data Types

IllegalMonthError

calendar

exception (source)
  • IllegalMonthError(month)
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.
0 Examples
No examples for calendar/IllegalMonthError.
See Also
No see-alsos for calendar/IllegalMonthError
0 Notes
No notes for IllegalMonthError