Fix #818704 ("Cannot communicate with device" error on 1st gen Kobo)

This commit is contained in:
Kovid Goyal 2011-07-30 20:26:21 -06:00
parent e53539285a
commit 9f9d1ce404

View File

@ -333,8 +333,14 @@ class KOBO(USBMS):
except Exception as e:
if 'no such column' not in str(e):
raise
try:
cursor.execute('update content set ReadStatus=0, FirstTimeReading = \'true\', ___PercentRead=0 ' \
'where BookID is Null and ContentID =?',t)
except Exception as e:
if 'no such column' not in str(e):
raise
cursor.execute('update content set ReadStatus=0, FirstTimeReading = \'true\' ' \
'where BookID is Null and ContentID =?',t)
connection.commit()