mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #818704 ("Cannot communicate with device" error on 1st gen Kobo)
This commit is contained in:
parent
e53539285a
commit
9f9d1ce404
@ -333,8 +333,14 @@ class KOBO(USBMS):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
if 'no such column' not in str(e):
|
if 'no such column' not in str(e):
|
||||||
raise
|
raise
|
||||||
cursor.execute('update content set ReadStatus=0, FirstTimeReading = \'true\', ___PercentRead=0 ' \
|
try:
|
||||||
'where BookID is Null and ContentID =?',t)
|
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()
|
connection.commit()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user