mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
f5bff92ac4
commit
02078028bc
@ -978,7 +978,7 @@ class libiMobileDevice():
|
|||||||
if error:
|
if error:
|
||||||
self._log_error(" ERROR: {0} handle:{1}".format(self._afc_error(error), handle.value))
|
self._log_error(" ERROR: {0} handle:{1}".format(self._afc_error(error), handle.value))
|
||||||
return False
|
return False
|
||||||
elif bytes_written.value == 0:
|
elif bytes_written.value <= 0:
|
||||||
self._log_error(" ERROR: writing {0:,} bytes, 0 bytes written, handle:{1}".format(bytes_remaining, handle.value))
|
self._log_error(" ERROR: writing {0:,} bytes, 0 bytes written, handle:{1}".format(bytes_remaining, handle.value))
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user