@staticmethod
def _call_and_ignore_exceptions(exc_list, func, *args, **kwargs):
    """Call the given function and pass if a given exception is raised."""
    try:
        return func(*args, **kwargs)
    except exc_list:
        pass
