granicus_archiver.legistar.exceptions¶
- exception granicus_archiver.legistar.exceptions.ThisShouldBeA500ErrorButItsNot[source]¶
Bases:
ExceptionRaised when a detail page request returns a
200 - OKresponse, but with error information in the HTML contentYes, that really happens
- exception granicus_archiver.legistar.exceptions.IncompleteItemError[source]¶
Bases:
ExceptionRaised in
model.DetailPageResult.from_html()if a detail page is in an incomplete stateThis 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:
IncompleteItemErrorRaised if a detail page is
"Not Viewable by the Public"
- exception granicus_archiver.legistar.exceptions.NoMeetingTimeError[source]¶
Bases:
IncompleteItemErrorRaised 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:
ExceptionException raised during parsing
- exception granicus_archiver.legistar.exceptions.CategoryError(clip_id: CLIP_ID, msg: str)[source]¶
Bases:
RSSParseErrorException raised when matching
rss_parser.FeedItem.categoryto a clip location
- exception granicus_archiver.legistar.exceptions.DatetimeError(clip_id: CLIP_ID, msg: str)[source]¶
Bases:
RSSParseErrorException raised when matching
rss_parser.FeedItem.meeting_dateto a clip datetime
- exception granicus_archiver.legistar.exceptions.LegistarThinksRSSCanPaginateError[source]¶
Bases:
ExceptionException 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.