Fix crash trying to thumbnail invalid image

This commit is contained in:
Raphael Michel
2021-08-16 10:33:57 +02:00
parent 08cb045f2e
commit 3c64733e93
3 changed files with 20 additions and 4 deletions

View File

@@ -38,5 +38,5 @@ def thumb(source, arg):
try:
return get_thumbnail(source, arg).thumb.url
except:
logger.exception('Failed to create thumbnail')
logger.exception(f'Failed to create thumbnail of {source}')
return default_storage.url(source)