@utils.check_messages("<STR_LIT>", "<STR_LIT>")<EOL><INDENT>def visit_attribute(self, node):<DEDENT>
if node.attrname == "<STR_LIT>":<EOL><INDENT>self.add_message("<STR_LIT>", node=node)<EOL>return<EOL><DEDENT>exception_message = "<STR_LIT:message>"<EOL>try:<EOL><INDENT>for inferred in node.expr.infer():<EOL><INDENT>if isinstance(inferred, astroid.Instance) and utils.inherit_from_std_ex(<EOL>inferred<EOL>):<EOL><INDENT>if node.attrname == exception_message:<EOL><INDENT>if exception_message in inferred.instance_attrs:<EOL><INDENT>continue<EOL><DEDENT>self.add_message("<STR_LIT>", node=node)<EOL><DEDENT><DEDENT>if isinstance(inferred, astroid.Module):<EOL><INDENT>self._warn_if_deprecated(<EOL>node, inferred.name, {node.attrname}, report_on_modules=False<EOL>)<EOL><DEDENT><DEDENT><DEDENT>except astroid.InferenceError:<EOL><INDENT>return<EOL><DEDENT>
Look for removed attributes