|
13 | 13 |
|
14 | 14 | from pymobiledevice3.cli.cli_common import TUNNEL_ENV_VAR, isatty
|
15 | 15 | from pymobiledevice3.exceptions import AccessDeniedError, CloudConfigurationAlreadyPresentError, \
|
16 |
| - ConnectionFailedToUsbmuxdError, DeprecationError, DeveloperModeError, DeveloperModeIsNotEnabledError, \ |
17 |
| - DeviceHasPasscodeSetError, DeviceNotFoundError, FeatureNotSupportedError, InternalError, InvalidServiceError, \ |
18 |
| - MessageNotSupportedError, MissingValueError, NoDeviceConnectedError, NotEnoughDiskSpaceError, NotPairedError, \ |
19 |
| - OSNotSupportedError, PairingDialogResponsePendingError, PasswordRequiredError, QuicProtocolNotSupportedError, \ |
20 |
| - RSDRequiredError, SetProhibitedError, TunneldConnectionError, UserDeniedPairingError |
| 16 | + ConnectionFailedError, ConnectionFailedToUsbmuxdError, DeprecationError, DeveloperModeError, \ |
| 17 | + DeveloperModeIsNotEnabledError, DeviceHasPasscodeSetError, DeviceNotFoundError, FeatureNotSupportedError, \ |
| 18 | + InternalError, InvalidServiceError, MessageNotSupportedError, MissingValueError, NoDeviceConnectedError, \ |
| 19 | + NotEnoughDiskSpaceError, NotPairedError, OSNotSupportedError, PairingDialogResponsePendingError, \ |
| 20 | + PasswordRequiredError, QuicProtocolNotSupportedError, RSDRequiredError, SetProhibitedError, \ |
| 21 | + TunneldConnectionError, UserDeniedPairingError |
21 | 22 | from pymobiledevice3.lockdown import retry_create_using_usbmux
|
22 | 23 | from pymobiledevice3.osu.os_utils import get_os_utils
|
23 | 24 |
|
@@ -208,6 +209,9 @@ def invoke_cli_with_error_handling() -> bool:
|
208 | 209 | logger.error(f'Failed to enable developer-mode. Error: {e}')
|
209 | 210 | except ConnectionFailedToUsbmuxdError:
|
210 | 211 | logger.error('Failed to connect to usbmuxd socket. Make sure it\'s running.')
|
| 212 | + except ConnectionFailedError: |
| 213 | + logger.error('Failed to connect to service port.') |
| 214 | + return True |
211 | 215 | except MessageNotSupportedError:
|
212 | 216 | logger.error('Message not supported for this iOS version')
|
213 | 217 | traceback.print_exc()
|
|
0 commit comments