def error_output(self, message, method_affected=None):
        """
        Something is wrong with the module so we want to output the error to
        the i3bar
        """
        color_fn = self._py3_wrapper.get_config_attribute
        color = color_fn(self.module_full_name, "color_error")
        if hasattr(color, "none_setting"):
            color = color_fn(self.module_full_name, "color_bad")
        if hasattr(color, "none_setting"):
            color = None

        error = {
            "full_text": message,
            "color": color,
            "instance": self.module_inst,
            "name": self.module_name,
        }
        for method in self.methods.values():
            if (
                method_affected
                and method["method"] != method_affected
                and method_affected != "post_config_hook"
            ):
                continue

            method["last_output"] = [error]

        self.allow_config_clicks = False
        self.set_updated()

        Something is wrong with the module so we want to output the error to
        the i3bar
        
py3status/module.py