]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blobdiff - sommitrealweird/generic/helpers.py
Update for newer django
[sommitrealweird.git] / sommitrealweird / generic / helpers.py
index 6c85aa1a86b77ba38ce49b586a254d6dbe25db45..e095d12c4da1a621cb30b7fb04f611f5d3102321 100644 (file)
@@ -54,7 +54,7 @@ def make_thumbnail(imagefile,width=None,height=None):
                 newimg.save("%sw%d/%s" %(thumbs_dir, width, imagefile))
                 
                 return "%s%s/w%d/%s" %(settings.MEDIA_URL, thumbsdirectory, width, imagefile)
                 newimg.save("%sw%d/%s" %(thumbs_dir, width, imagefile))
                 
                 return "%s%s/w%d/%s" %(settings.MEDIA_URL, thumbsdirectory, width, imagefile)
-            except Exception, e:
+            except Exception as e:
                 sys.stderr.write("Got exception: %s" %(e,))
 
     elif height != None:
                 sys.stderr.write("Got exception: %s" %(e,))
 
     elif height != None: