def validate_listeners(self):
if self.exception:<EOL><INDENT>raise self.exception<EOL><DEDENT>listeners = self.__listeners_for_thread<EOL>if not sum(len(l) for l in listeners):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>
Validates that some listeners are actually registered