diff --git a/src/calibre/db/cache.py b/src/calibre/db/cache.py index 4ac9ebc7c5..5c3b188b79 100644 --- a/src/calibre/db/cache.py +++ b/src/calibre/db/cache.py @@ -2534,7 +2534,7 @@ class Cache: lm = table.link_map vm = table.id_map ans = {vm.get(fid):v for fid,v in lm.items() if v} - ans.pop(None) + ans.pop(None, None) return ans @read_api