def _get_liveRegionPoliteness(self) -> aria.AriaLivePoliteness: politeness = self.HTMLAttributes["aria-live"] or "off" try: return aria.AriaLivePoliteness(politeness.lower()) except ValueError: log.error(f"Unknown live politeness of {politeness}", exc_info=True) super().liveRegionPoliteness
def _get_liveRegionPoliteness(self) -> aria.AriaLivePoliteness: politeness = self.IA2Attributes.get('live', "off") try: return aria.AriaLivePoliteness(politeness.lower()) except ValueError: log.error(f"Unknown live politeness of {politeness}", exc_info=True) super().liveRegionPoliteness