IllegalHourError

exception astropy.coordinates.IllegalHourError(hour)[source]

Raised when an hour value is not in the range [0,24).

Parameters:
hourpython:int, python:float

Examples

if not 0 <= hr < 24:
   raise IllegalHourError(hour)