changeset 3474:b485c2b6b2b9

MoinMoin.action.PackagePages: shows only class error on error
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sat, 05 Apr 2008 17:40:11 +0200
parents 59a4005672d3
children 44a2f2f0d755
files MoinMoin/action/PackagePages.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/PackagePages.py	Sat Apr 05 11:48:47 2008 +0200
+++ b/MoinMoin/action/PackagePages.py	Sat Apr 05 17:40:11 2008 +0200
@@ -110,7 +110,8 @@
         from MoinMoin.widget.dialog import Dialog
         _ = self.request.getText
 
-        error = u'<p class="error">%s</p>\n' % error
+        if error:
+            error = u'<p class="error">%s</p>\n' % error
 
         d = {
             'baseurl': self.request.getScriptname(),