diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2011-05-07 07:42:34 -0400 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2011-05-07 07:42:34 -0400 |
commit | 68a1f42e34c4bdddf87853b346e10e592d38e237 (patch) | |
tree | 15280ed1522d4ef7f683ce29b2d5ac0dcf4f5e29 /scanner/PhotoAlbum.py | |
parent | Meta data consolidation. (diff) | |
download | PhotoFloat-68a1f42e34c4bdddf87853b346e10e592d38e237.tar.xz PhotoFloat-68a1f42e34c4bdddf87853b346e10e592d38e237.zip |
Final tweeks.
Diffstat (limited to '')
-rw-r--r-- | scanner/PhotoAlbum.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scanner/PhotoAlbum.py b/scanner/PhotoAlbum.py index 7147fc1..6e209e7 100644 --- a/scanner/PhotoAlbum.py +++ b/scanner/PhotoAlbum.py @@ -1,6 +1,7 @@ from CachePath import * from datetime import datetime import json +import os import os.path from PIL import Image from PIL.ExifTags import TAGS @@ -224,7 +225,8 @@ class Photo(object): try: image.save(thumb_path, "JPEG") except: - os.path.unlink(thumb_path) + print "Could not thumbnail %s" % thumb_path + os.unlink(thumb_path) def _thumbnails(self, image, thumb_path): mirror = image |