Fix exception log formatting

This commit is contained in:
Joel Addison 2024-03-20 20:16:34 +10:00
parent fd5883014c
commit 7179bee130

View file

@ -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")