mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
47b927f5bc
commit
4dbf49855a
@ -1142,6 +1142,9 @@ class Cache(object):
|
|||||||
if extra is not None or force_changes:
|
if extra is not None or force_changes:
|
||||||
protected_set_field(idx, extra)
|
protected_set_field(idx, extra)
|
||||||
except:
|
except:
|
||||||
|
# sqlite will rollback the entire transaction, thanks to the with
|
||||||
|
# statement, so we have to re-read everything form the db to ensure
|
||||||
|
# the db and Cache are in sync
|
||||||
self._reload_from_db()
|
self._reload_from_db()
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user