Skip to content

Commit

Permalink
Merge pull request #15 from doronz88/refactor/afc
Browse files Browse the repository at this point in the history
afc: refactor
  • Loading branch information
doronz88 authored Apr 20, 2021
2 parents d72e0ad + 0c479f8 commit bdcf6fe
Show file tree
Hide file tree
Showing 4 changed files with 226 additions and 153 deletions.
16 changes: 14 additions & 2 deletions pymobiledevice3/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,21 @@ class DeviceNonConnectedError(PyMobileDevice3Exception):
pass


class MuxError(PyMobileDevice3Exception):
class MuxException(PyMobileDevice3Exception):
pass


class MuxVersionError(MuxError):
class MuxVersionError(MuxException):
pass


class ArgumentError(PyMobileDevice3Exception):
pass


class AfcException(PyMobileDevice3Exception):
pass


class AfcFileNotFoundError(AfcException):
pass
2 changes: 1 addition & 1 deletion pymobiledevice3/service_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def create(udid, port):

try:
socket = mux.connect(target_device, port)
except usbmux.MuxError:
except usbmux.MuxException:
raise ConnectionFailedError(f'Connection to device port {port} failed')

return ServiceConnection(socket)
Expand Down
Loading

0 comments on commit bdcf6fe

Please sign in to comment.