changeset 906:e4dbe31e3ede

fix formatter plugin code
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 07 Jul 2006 21:34:21 +0200
parents ce7ca91787b0
children d28181736482
files MoinMoin/formatter/__init__.py MoinMoin/formatter/text_python.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/formatter/__init__.py	Fri Jul 07 20:42:05 2006 +0200
+++ b/MoinMoin/formatter/__init__.py	Fri Jul 07 21:34:21 2006 +0200
@@ -313,7 +313,7 @@
             try:
                 parser = wikiutil.importPlugin(self.request.cfg, "parser", module_name, "Parser")
                 break
-            except PluginMissingError:
+            except wikiutil.PluginMissingError:
                 pass
         else:
             raise "Parser not found" # XXX what now?
--- a/MoinMoin/formatter/text_python.py	Fri Jul 07 20:42:05 2006 +0200
+++ b/MoinMoin/formatter/text_python.py	Fri Jul 07 21:34:21 2006 +0200
@@ -191,7 +191,7 @@
             try:
                 Dependencies = wikiutil.importPlugin(self.request.cfg, "parser", module_name, "Dependencies")
                 break
-            except wikiutil.PluginAttributeError:
+            except (wikiutil.PluginMissingError, wikiutil.PluginAttributeError), err:
                 pass
         else:
             Dependencies = self.defaultDependencies