changeset 160:290d4eea1c0c

text_x_arnica: added msg for IOError exception
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sat, 12 Jul 2008 15:08:21 +0200
parents 543c75e16a5b
children 8eee2fa838cf
files data/plugin/parser/text_x_arnica.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py	Sat Jul 12 14:56:18 2008 +0200
+++ b/data/plugin/parser/text_x_arnica.py	Sat Jul 12 15:08:21 2008 +0200
@@ -521,7 +521,8 @@
             try:
                 im_obj = Image.open(imagef)
             except IOError:
-                # ToDo tell why
+                msg = _("attachment: %(filename)s not exists") % {"filename": os.path.basename(imagef)}
+                self.request.write(self.formatter.text(msg))
                 return
 
            # XXX later on a unit conversion method for using other units than 'px' is needed