mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-07 09:01:38 -04:00
Actually delete from the database even if an image is not found
This commit is contained in:
parent
664865222e
commit
756a0a3f82
@ -176,7 +176,6 @@ class KOBO(USBMS):
|
|||||||
ImageID = row[0]
|
ImageID = row[0]
|
||||||
cursor.close()
|
cursor.close()
|
||||||
|
|
||||||
if ImageID != None:
|
|
||||||
cursor = connection.cursor()
|
cursor = connection.cursor()
|
||||||
if ContentType == 6:
|
if ContentType == 6:
|
||||||
# Delete the shortcover_pages first
|
# Delete the shortcover_pages first
|
||||||
@ -192,7 +191,7 @@ class KOBO(USBMS):
|
|||||||
connection.commit()
|
connection.commit()
|
||||||
|
|
||||||
cursor.close()
|
cursor.close()
|
||||||
else:
|
if ImageID != None:
|
||||||
print "Error condition ImageID was not found"
|
print "Error condition ImageID was not found"
|
||||||
print "You likely tried to delete a book that the kobo has not yet added to the database"
|
print "You likely tried to delete a book that the kobo has not yet added to the database"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user