mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Diagnostic tweaks
This commit is contained in:
parent
8a9077eb6a
commit
62097a2445
@ -219,7 +219,7 @@ class libiMobileDevice():
|
|||||||
self.device_connected = True
|
self.device_connected = True
|
||||||
|
|
||||||
except libiMobileDeviceException as e:
|
except libiMobileDeviceException as e:
|
||||||
self._log(e.value)
|
self._log_error(e.value)
|
||||||
self.disconnect_idevice()
|
self.disconnect_idevice()
|
||||||
|
|
||||||
return self.device_connected
|
return self.device_connected
|
||||||
@ -501,7 +501,7 @@ class libiMobileDevice():
|
|||||||
self.device_mounted = True
|
self.device_mounted = True
|
||||||
|
|
||||||
except libiMobileDeviceException as e:
|
except libiMobileDeviceException as e:
|
||||||
self._log(e.value)
|
self._log_error(e.value)
|
||||||
self.disconnect_idevice()
|
self.disconnect_idevice()
|
||||||
|
|
||||||
elif app_id:
|
elif app_id:
|
||||||
@ -518,7 +518,7 @@ class libiMobileDevice():
|
|||||||
self.device_mounted = True
|
self.device_mounted = True
|
||||||
|
|
||||||
except libiMobileDeviceException as e:
|
except libiMobileDeviceException as e:
|
||||||
self._log(e.value)
|
self._log_error("{0}: {1}".format(app_id, e.value))
|
||||||
self.disconnect_idevice()
|
self.disconnect_idevice()
|
||||||
|
|
||||||
if self.device_mounted:
|
if self.device_mounted:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user