mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 14:33:37 +02:00
...
This commit is contained in:
parent
843e7f53ba
commit
7d9ca9dda7
1 changed files with 6 additions and 2 deletions
|
|
@ -97,8 +97,12 @@ def run(self):
|
|||
import traceback
|
||||
traceback.print_exc()
|
||||
continue
|
||||
with self.lock:
|
||||
self.cache[id_] = img
|
||||
try:
|
||||
with self.lock:
|
||||
self.cache[id_] = img
|
||||
except:
|
||||
# Happens during interpreter shutdown
|
||||
break
|
||||
|
||||
def set_cache(self, ids):
|
||||
with self.lock:
|
||||
|
|
|
|||
Loading…
Reference in a new issue