diff --git a/src/calibre/devices/prst1/driver.py b/src/calibre/devices/prst1/driver.py index 92db8c6142..d3c92b5eff 100644 --- a/src/calibre/devices/prst1/driver.py +++ b/src/calibre/devices/prst1/driver.py @@ -376,7 +376,7 @@ class PRST1(USBMS): # Record what the max id being used is as well. db_books = {} for i, row in enumerate(cursor): - if row is None: + if row[0] is None: continue lpath = row[0].replace('\\', '/') db_books[lpath] = row[1]