mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
1acb8b2fca
commit
4fa75a4b4a
@ -47,7 +47,7 @@ def get_connected_device():
|
|||||||
|
|
||||||
for d in connected_devices:
|
for d in connected_devices:
|
||||||
try:
|
try:
|
||||||
d.open()
|
d.open(None)
|
||||||
except:
|
except:
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
@ -121,7 +121,7 @@ def debug(ioreg_to_tmp=False, buf=None):
|
|||||||
out('Trying to open', dev.name, '...', end=' ')
|
out('Trying to open', dev.name, '...', end=' ')
|
||||||
try:
|
try:
|
||||||
dev.reset(detected_device=det)
|
dev.reset(detected_device=det)
|
||||||
dev.open()
|
dev.open(None)
|
||||||
out('OK')
|
out('OK')
|
||||||
except:
|
except:
|
||||||
import traceback
|
import traceback
|
||||||
|
@ -221,7 +221,8 @@ class PRS505(USBMS):
|
|||||||
os.path.splitext(os.path.basename(p))[0],
|
os.path.splitext(os.path.basename(p))[0],
|
||||||
book, p)
|
book, p)
|
||||||
except:
|
except:
|
||||||
debug_print('FAILED to upload cover', p)
|
debug_print('FAILED to upload cover',
|
||||||
|
prefix, book.lpath)
|
||||||
else:
|
else:
|
||||||
debug_print('PRS505: NOT uploading covers in sync_booklists')
|
debug_print('PRS505: NOT uploading covers in sync_booklists')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user