def get_urgent(self, sensors):
if self.urgent_on not in ('<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>raise Exception("<STR_LIT>")<EOL><DEDENT>for sensor in sensors:<EOL><INDENT>if self.urgent_on == '<STR_LIT>' and sensor.is_warning():<EOL><INDENT>return True<EOL><DEDENT>elif self.urgent_on == '<STR_LIT>' and sensor.is_critical():<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return False<EOL>
Determine if any sensors should set the urgent flag.