mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #2036993 [Unhandled exception error when removing books](https://bugs.launchpad.net/calibre/+bug/2036993)
This commit is contained in:
parent
1304e1c119
commit
0768e046eb
@ -1901,7 +1901,8 @@ class Cache:
|
|||||||
self.fields['size'].table.update_sizes(size_map)
|
self.fields['size'].table.update_sizes(size_map)
|
||||||
|
|
||||||
for book_id, fmts in iteritems(formats_map):
|
for book_id, fmts in iteritems(formats_map):
|
||||||
run_plugins_on_postdelete(self, book_id, fmt)
|
for fmt in fmts:
|
||||||
|
run_plugins_on_postdelete(self, book_id, fmt)
|
||||||
|
|
||||||
self._update_last_modified(tuple(formats_map))
|
self._update_last_modified(tuple(formats_map))
|
||||||
self.event_dispatcher(EventType.formats_removed, formats_map)
|
self.event_dispatcher(EventType.formats_removed, formats_map)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user