changeset 1331:b7352ce35900

Fix GetText2 for incorrect parameters.
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Sat, 19 Aug 2006 21:06:53 +0200
parents df88b475c1f0
children 16a854a172c9
files MoinMoin/macro/GetText2.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/macro/GetText2.py	Sat Aug 19 16:18:19 2006 +0200
+++ b/MoinMoin/macro/GetText2.py	Sat Aug 19 21:06:53 2006 +0200
@@ -22,7 +22,10 @@
     """
     sep = args[0]
     args = unpackLine(args[1:], sep)
-    translation = macro.request.getText(args[0], formatted=False)
+    if args:
+        translation = macro.request.getText(args[0], formatted=False)
+    else:
+        translation = u""
     message = translation % tuple(args[1:])
 
     return macro.formatter.text(message)