changeset 218:cec66eb7315f

arnica_slides: no need to remove the image before rotating it.
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Mon, 01 Sep 2008 17:23:33 +0200
parents 1c76b2acd1a5
children 3d54ce153f01
files data/plugin/action/arnica_slides.py
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/action/arnica_slides.py	Mon Sep 01 17:16:48 2008 +0200
+++ b/data/plugin/action/arnica_slides.py	Mon Sep 01 17:23:33 2008 +0200
@@ -39,13 +39,9 @@
     # only image needs to be rotated, webnail and thumbnail
     # will be recreated by the arnica parser
     image_object = Image.open(file_name)
-    # XXX only after success kill the original file, rename first? 
-    os.remove(file_name)
     try:
         image_object.rotate(angle).save(file_name, img_type)
     except IOError:
-        # image file is truncated
-        # the broken file is gone at that point
         return
 
 def html_js(request, counter):