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
Decorator to create a `Promise` check function that is satisfied
dataset/ETHPy150Open edx/bok-choy/bok_choy/query.py/no_error