changeset 228:4507998dcfbc

text_x_arnica: bug fix, webnail creation also for images without exif tags
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Mon, 01 Sep 2008 20:53:33 +0200
parents a16b7c703fd3
children 6cc67d4f27cb
files data/plugin/parser/text_x_arnica.py
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py	Mon Sep 01 20:51:04 2008 +0200
+++ b/data/plugin/parser/text_x_arnica.py	Mon Sep 01 20:53:33 2008 +0200
@@ -497,12 +497,12 @@
                     except KeyError:
                         pass
 
-                    buf = StringIO.StringIO()
-                    im_obj.save(buf, image_type)
-                    buf.flush()
-                    buf.seek(0)
-                    cache.put(self.request, webnail, buf, filename=image)
-                    buf.close()
+                buf = StringIO.StringIO()
+                im_obj.save(buf, image_type)
+                buf.flush()
+                buf.seek(0)
+                cache.put(self.request, webnail, buf, filename=image)
+                buf.close()
 
             if not cache.exists(self.request, thumbnail):
                 try: