changeset 341:21fd5f586a3b

text_x_arnica: bug fix for using arnica format and a wrong typed or undefined parameter. It shows the usual message about wrong argument without a traceback now.
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 25 Jan 2009 21:20:28 +0100
parents cdf4d4fccd82
children b59176531abe
files data/plugin/parser/text_x_arnica.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py	Wed Jan 21 23:00:52 2009 +0100
+++ b/data/plugin/parser/text_x_arnica.py	Sun Jan 25 21:20:28 2009 +0100
@@ -94,10 +94,10 @@
         except ValueError, err:
             # ToDo use formatter
             request.write(self.formatter.text(err))
-
-        self.arnica_image = {} # self.arnica_image[image] = (webnail, thumbnail, exif_date, description, order)
-        self.Image = wikiutil.importWikiPlugin(self.request.cfg, "macro", "Image", function="Image")
-        self.breakable_word_length = self.thumbnail_width / 8
+        else:
+            self.arnica_image = {} # self.arnica_image[image] = (webnail, thumbnail, exif_date, description, order)
+            self.Image = wikiutil.importWikiPlugin(self.request.cfg, "macro", "Image", function="Image")
+            self.breakable_word_length = self.thumbnail_width / 8
 
     def html_tools_restricted(self, this_target):
         """ shows restricted tools