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)
|
||||
return thumbnail.url
|
||||
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.
|
||||
email = speaker.user.email.encode("utf-8")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue