get_section_by_id#

Deck.get_section_by_id(id: int) Optional[KeywordBase]#

Get the SECTION keyword in the collection for a given section ID.

Parameters:
idint

Section ID.

Returns:
SECTION keyword or None if there is no SECTION keyword that matches the section ID.
Raises:
Exception

If multiple SECTION keywords use the given section ID.