Skip to content

Commit

Permalink
Fix #2036993 [Unhandled exception error when removing books](https://…
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Sep 21, 2023
1 parent 1304e1c commit 0768e04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/calibre/db/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -1901,7 +1901,8 @@ def remove_formats(self, formats_map, db_only=False):
self.fields['size'].table.update_sizes(size_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.event_dispatcher(EventType.formats_removed, formats_map)
Expand Down

0 comments on commit 0768e04

Please sign in to comment.