diff --git a/src/calibre/devices/kobo/driver.py b/src/calibre/devices/kobo/driver.py index 3eeec567da..88002f18bb 100644 --- a/src/calibre/devices/kobo/driver.py +++ b/src/calibre/devices/kobo/driver.py @@ -3086,6 +3086,7 @@ class KOBOTOUCH(KOBO): if not self.supports_bookshelves: return bookshelves + # No idea why, but the newer database version seems to make this necessary if self.dbversion >= 188: query = 'SELECT Name FROM Shelf WHERE _IsDeleted = false' else: