def decorator_pairing_dialog(func):
    """
    When the device is not paired, trigger the trust dialogue and try again.
    """

    @wraps(func)
    def wrapper(*args, **kwargs):
        try:
            return func(*args, **kwargs)
        except MuxError:
            if sys.platform.startswith("win"):
                error_msg = "Device is not yet paired. Triggered the trust dialogue. Please accept and try again. (iTunes is required on Windows.) "
            else:
                error_msg = "Device is not yet paired. Triggered the trust dialogue. Please accept and try again."
            LOGGING.error(error_msg)
            raise

    return wrapper

    When the device is not paired, trigger the trust dialogue and try again.
    
airtest/core/ios/ios.py