Fix bug causing the initialize method of plugins to not be called

This commit is contained in:
Kovid Goyal 2009-12-23 10:00:22 -07:00
parent 593214b309
commit c40a2b5acb

View File

@ -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()