mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Fix bug causing the initialize method of plugins to not be called
This commit is contained in:
parent
593214b309
commit
c40a2b5acb
@ -253,7 +253,8 @@ run_plugins_on_postprocess = functools.partial(_run_filetype_plugins,
|
||||
|
||||
def initialize_plugin(plugin, path_to_zip_file):
|
||||
try:
|
||||
return plugin(path_to_zip_file)
|
||||
p = plugin(path_to_zip_file)
|
||||
p.initialize()
|
||||
except Exception:
|
||||
print 'Failed to initialize plugin:', plugin.name, plugin.version
|
||||
tb = traceback.format_exc()
|
||||
|
Loading…
x
Reference in New Issue
Block a user