Fix exception log formatting
This commit is contained in:
parent
fd5883014c
commit
7179bee130
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ def speaker_photo(context, speaker, size):
|
||||||
thumbnail = thumbnailer.get_thumbnail(thumbnail_options)
|
thumbnail = thumbnailer.get_thumbnail(thumbnail_options)
|
||||||
return thumbnail.url
|
return thumbnail.url
|
||||||
except:
|
except:
|
||||||
log.exception("Cannot create thumbnail for speaker %s, image %s" % speaker.code, speaker.photo)
|
log.exception("Cannot create thumbnail for speaker %s, image %s" % (speaker.code, speaker.photo))
|
||||||
|
|
||||||
# Use gravatar if no photo can be used.
|
# Use gravatar if no photo can be used.
|
||||||
email = speaker.user.email.encode("utf-8")
|
email = speaker.user.email.encode("utf-8")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue