def node_ignores_exception(<EOL>node: astroid.node_classes.NodeNG, exception=Exception<EOL>) -> bool:
managing_handlers = get_exception_handlers(node, exception)<EOL>if not managing_handlers:<EOL><INDENT>return False<EOL><DEDENT>return any(managing_handlers)<EOL>
Check if the node is in a TryExcept which handles the given exception.

    If the exception is not given, the function is going to look for bare
    excepts.