def no_error(func):
    def _inner(*args, **kwargs):  # pylint: disable=missing-docstring
        try:
            return_val = func(*args, **kwargs)
        except WebDriverException:
            return (False, None)
        else:
            return (True, return_val)

    return _inner
Order vertices in the graph such that parents always have a lower index than children.
dataset/ETHPy150Open edx/bok-choy/bok_choy/query.py/no_error--crossover with--dataset/ETHPy150Open SheffieldML/GPy/GPy/util/mocap.py/tree.order_vertices