mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-21 22:14:28 +01:00
Fix bug causing the initialize method of plugins to not be called
This commit is contained in:
parent
593214b309
commit
c40a2b5acb
1 changed files with 2 additions and 1 deletions
|
|
@ -253,7 +253,8 @@ def _run_filetype_plugins(path_to_file, ft=None, occasion='preprocess'):
|
|||
|
||||
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…
Reference in a new issue