mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Ignore importerror during interpreter shutdown while closing db
This commit is contained in:
parent
1c8049eb21
commit
7f6f53149d
@ -2461,7 +2461,11 @@ class Cache:
|
|||||||
self.shutting_down = True
|
self.shutting_down = True
|
||||||
self.event_dispatcher.close()
|
self.event_dispatcher.close()
|
||||||
self._shutdown_fts()
|
self._shutdown_fts()
|
||||||
|
try:
|
||||||
from calibre.customize.ui import available_library_closed_plugins
|
from calibre.customize.ui import available_library_closed_plugins
|
||||||
|
except ImportError:
|
||||||
|
pass # happens during interpreter shutdown
|
||||||
|
else:
|
||||||
for plugin in available_library_closed_plugins():
|
for plugin in available_library_closed_plugins():
|
||||||
try:
|
try:
|
||||||
plugin.run(self)
|
plugin.run(self)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user