X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/d82db041f520a51eccee6788ebc3a494e2a4280f..eeafdfccb63314d85802f3064b6fb904375bda03:/sommitrealweird/generic/helpers.py?ds=sidebyside diff --git a/sommitrealweird/generic/helpers.py b/sommitrealweird/generic/helpers.py index 6c85aa1..e095d12 100644 --- a/sommitrealweird/generic/helpers.py +++ b/sommitrealweird/generic/helpers.py @@ -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) - except Exception, e: + except Exception as e: sys.stderr.write("Got exception: %s" %(e,)) elif height != None: