granicus_archiver.legistar.exceptions

exception granicus_archiver.legistar.exceptions.ThisShouldBeA500ErrorButItsNot[source]

Bases: Exception

Raised when a detail page request returns a 200 - OK response, but with error information in the HTML content

Yes, that really happens

exception granicus_archiver.legistar.exceptions.IncompleteItemError[source]

Bases: Exception

Raised in model.DetailPageResult.from_html() if a detail page is in an incomplete state

This can be the case if the agenda status is not public or if no meeting time has been set.

exception granicus_archiver.legistar.exceptions.HiddenItemError[source]

Bases: IncompleteItemError

Raised if a detail page is "Not Viewable by the Public"

exception granicus_archiver.legistar.exceptions.NoMeetingTimeError[source]

Bases: IncompleteItemError

Raised if no time was set for the meeting

Note

This exception is not raised if the item is older than a set amount of time (see rss_parser.FeedItem.is_in_past)

granicus_archiver.legistar.exceptions.RSSParseErrorType

Parse error names

alias of Literal[‘unknown’, ‘category’, ‘datetime’]

exception granicus_archiver.legistar.exceptions.RSSParseError(clip_id: CLIP_ID, msg: str)[source]

Bases: Exception

Exception raised during parsing

Parameters:
Return type:

None

error_type: ClassVar[Literal['unknown', 'category', 'datetime']] = 'unknown'

String indicator of the type of error

clip_id: CLIP_ID

The clip id associated with the error

exception granicus_archiver.legistar.exceptions.CategoryError(clip_id: CLIP_ID, msg: str)[source]

Bases: RSSParseError

Exception raised when matching rss_parser.FeedItem.category to a clip location

Parameters:
Return type:

None

error_type: ClassVar[Literal['unknown', 'category', 'datetime']] = 'category'

String indicator of the type of error

exception granicus_archiver.legistar.exceptions.DatetimeError(clip_id: CLIP_ID, msg: str)[source]

Bases: RSSParseError

Exception raised when matching rss_parser.FeedItem.meeting_date to a clip datetime

Parameters:
Return type:

None

error_type: ClassVar[Literal['unknown', 'category', 'datetime']] = 'datetime'

String indicator of the type of error

exception granicus_archiver.legistar.exceptions.LegistarThinksRSSCanPaginateError[source]

Bases: Exception

Exception raised when an RSS feed contains exactly 100 items

This could mean there are exactly 100 items available, but Legistar’s feed generator limits the results for any RSS feed to 100 items even if there are more available!

As a precaution, this is treated as an error so the feeds can be divided up as described in rss_parser.Feed.