This commit is contained in:
Kovid Goyal 2011-03-14 09:58:54 -06:00
parent 1acb8b2fca
commit 4fa75a4b4a
2 changed files with 4 additions and 3 deletions

View File

@ -47,7 +47,7 @@ def get_connected_device():
for d in connected_devices:
try:
d.open()
d.open(None)
except:
continue
else:
@ -121,7 +121,7 @@ def debug(ioreg_to_tmp=False, buf=None):
out('Trying to open', dev.name, '...', end=' ')
try:
dev.reset(detected_device=det)
dev.open()
dev.open(None)
out('OK')
except:
import traceback

View File

@ -221,7 +221,8 @@ class PRS505(USBMS):
os.path.splitext(os.path.basename(p))[0],
book, p)
except:
debug_print('FAILED to upload cover', p)
debug_print('FAILED to upload cover',
prefix, book.lpath)
else:
debug_print('PRS505: NOT uploading covers in sync_booklists')