mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
...
This commit is contained in:
parent
843e7f53ba
commit
7d9ca9dda7
@ -97,8 +97,12 @@ class CoverCache(Thread): # {{{
|
|||||||
import traceback
|
import traceback
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
continue
|
continue
|
||||||
with self.lock:
|
try:
|
||||||
self.cache[id_] = img
|
with self.lock:
|
||||||
|
self.cache[id_] = img
|
||||||
|
except:
|
||||||
|
# Happens during interpreter shutdown
|
||||||
|
break
|
||||||
|
|
||||||
def set_cache(self, ids):
|
def set_cache(self, ids):
|
||||||
with self.lock:
|
with self.lock:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user