diff MoinMoin/formatter/__init__.py @ 3627:5c0b94be4909

raise ImportError from macros just as though they were other errors
author Johannes Berg <johannes AT sipsolutions DOT net>
date Tue, 20 May 2008 18:28:29 +0200
parents d0ff6a5b6d34
children 7f1e4cac0f89
line wrap: on
line diff
--- a/MoinMoin/formatter/__init__.py	Tue May 20 03:42:14 2008 +0200
+++ b/MoinMoin/formatter/__init__.py	Tue May 20 18:28:29 2008 +0200
@@ -314,6 +314,8 @@
             return macro_obj.execute(name, args)
         except ImportError, err:
             errmsg = unicode(err)
+            if errmsg.find(name) == -1:
+                raise
             if markup:
                 return (self.span(1, title=errmsg) +
                         self.text(markup) +