def error_output(self, message, method_affected=None):
color_fn = self._py3_wrapper.get_config_attribute<EOL>color = color_fn(self.module_full_name, "<STR_LIT>")<EOL>if hasattr(color, "<STR_LIT>"):<EOL><INDENT>color = color_fn(self.module_full_name, "<STR_LIT>")<EOL><DEDENT>if hasattr(color, "<STR_LIT>"):<EOL><INDENT>color = None<EOL><DEDENT>error = {<EOL>"<STR_LIT>": message,<EOL>"<STR_LIT>": color,<EOL>"<STR_LIT>": self.module_inst,<EOL>"<STR_LIT:name>": self.module_name,<EOL>}<EOL>for method in self.methods.values():<EOL><INDENT>if method_affected and method["<STR_LIT>"] != method_affected:<EOL><INDENT>continue<EOL><DEDENT>method["<STR_LIT>"] = [error]<EOL><DEDENT>self.allow_config_clicks = False<EOL>self.set_updated()<EOL>
Something is wrong with the module so we want to output the error to
the i3bar