changeset 212:bb2f7c52d1d7

text_x_arnica: bug fix of _getexif call it can fail because of a KeyError
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 05 Aug 2008 17:19:07 +0200
parents da38f8d6693b
children ffaf11b6c429
files data/plugin/parser/text_x_arnica.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py	Tue Aug 05 16:26:34 2008 +0200
+++ b/data/plugin/parser/text_x_arnica.py	Tue Aug 05 17:19:07 2008 +0200
@@ -557,7 +557,7 @@
                 if not self.image_for_webnail:
                     try:
                         exif = im_obj._getexif()
-                    except AttributeError:
+                    except (AttributeError, KeyError):
                         exif = None
                     try:
                         im_obj.thumbnail((int(self.webnail_width.strip('px')), int(self.webnail_width.strip('px'))), Image.ANTIALIAS)