From eb23cfd76ffab58b75bd76f4e6e20b4fa1112d31 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Wed, 23 Dec 2009 11:42:05 +0000 Subject: [PATCH] 3467: Exporter returns an error, but it exports fine if we try once more during session svn: r13892 --- src/gen/plug/_manager.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gen/plug/_manager.py b/src/gen/plug/_manager.py index 32e8473db..4ffc55fe0 100644 --- a/src/gen/plug/_manager.py +++ b/src/gen/plug/_manager.py @@ -311,12 +311,15 @@ class BasePluginManager(object): continue mod = self.load_plugin(pdata) if mod: + options = None + if (pdata.export_options and + hasattr(mod, pdata.export_options)): + options = getattr(mod, pdata.export_options) exp = gen.plug.ExportPlugin(name=pdata.name, description = pdata.description, export_function = getattr(mod, pdata.export_function), extension = pdata.extension, - config = (pdata.export_options_title, - getattr(mod, pdata.export_options))) + config = (pdata.export_options_title, options)) self.__export_plugins.append(exp) return self.__export_plugins