mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Ignore double removes
This commit is contained in:
parent
6b348a0940
commit
3eb28b395e
@ -128,7 +128,10 @@ def expire_cache_and_temp(temp_path, finished_path, metadata, max_age, force_exp
|
||||
for r in removed:
|
||||
rkey = r['key']
|
||||
if rkey in entries:
|
||||
try:
|
||||
entries[rkey].remove(r)
|
||||
except ValueError:
|
||||
pass
|
||||
if not entries[rkey]:
|
||||
del entries[rkey]
|
||||
metadata['last_clear_at'] = now
|
||||
|
Loading…
x
Reference in New Issue
Block a user