changeset 3628:7f1e4cac0f89

fix up 5c0b94be4909 and use 'in' instead of .find
author Johannes Berg <johannes AT sipsolutions DOT net>
date Tue, 20 May 2008 18:35:44 +0200
parents 5c0b94be4909
children bf72cc397f76
files MoinMoin/formatter/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/formatter/__init__.py	Tue May 20 18:28:29 2008 +0200
+++ b/MoinMoin/formatter/__init__.py	Tue May 20 18:35:44 2008 +0200
@@ -314,7 +314,7 @@
             return macro_obj.execute(name, args)
         except ImportError, err:
             errmsg = unicode(err)
-            if errmsg.find(name) == -1:
+            if not name in errmsg:
                 raise
             if markup:
                 return (self.span(1, title=errmsg) +