fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Annoy in book text too.
[wolnelektury.git]
/
src
/
picture
/
templatetags
/
picture_tags.py
diff --git
a/src/picture/templatetags/picture_tags.py
b/src/picture/templatetags/picture_tags.py
index
a766b44
..
973d862
100644
(file)
--- a/
src/picture/templatetags/picture_tags.py
+++ b/
src/picture/templatetags/picture_tags.py
@@
-57,7
+57,7
@@
def area_thumbnail_url(area, geometry):
crop="%dpx %dpx %dpx %dpx" % tuple(map(lambda d: max(0, d), tuple(coords[0] + coords[1]))))
except ZeroDivisionError:
return ''
- except Exception
,
e:
+ except Exception
as
e:
logging.exception("Error creating a thumbnail for PictureArea")
return ''