From 197c0c4496a269ee2063fb6c33afbe2e939d5a52 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sun, 4 Oct 2009 17:55:51 -0700 Subject: tweaks to get galleries going --- bn_django/photos/views.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bn_django/photos/views.py') diff --git a/bn_django/photos/views.py b/bn_django/photos/views.py index 993c116..a6459f6 100644 --- a/bn_django/photos/views.py +++ b/bn_django/photos/views.py @@ -117,7 +117,7 @@ def import_photos(request, thegallery): if tags.has_key('Image DateTime'): exifdate = tags['Image DateTime'].printable photo.date = apply(datetime, map(int, exifdate.split(' ')[0].split(':'))) - except Exception as E: + except Exception, E: print E pass try: @@ -126,7 +126,7 @@ def import_photos(request, thegallery): if not exiftitle == []: photo.title = exiftitle - except Exception as E: + except Exception, E: print E pass try: @@ -135,10 +135,10 @@ def import_photos(request, thegallery): if exifrot == 'Rotated 90 CCW': #DO ROTATION pass - except Exception as E: + except Exception, E: print E pass - except Exception as E: + except Exception, E: print E pass finally: -- cgit v1.2.3