fix a logging error in thumbnailer (#8435)

Introduced in #8236
This commit is contained in:
Richard van der Hoff 2020-10-01 13:34:24 +01:00 committed by GitHub
parent 50e5174e86
commit b1f4e6e4fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/8435.bugfix Normal file
View File

@ -0,0 +1 @@
Fix a longstanding bug where files that could not be thumbnailed would result in an Internal Server Error.

View File

@ -637,7 +637,7 @@ class MediaRepository:
thumbnailer = Thumbnailer(input_path) thumbnailer = Thumbnailer(input_path)
except ThumbnailError as e: except ThumbnailError as e:
logger.warning( logger.warning(
"Unable to generate thumbnails for remote media %s from %s using a method of %s and type of %s: %s", "Unable to generate thumbnails for remote media %s from %s of type %s: %s",
media_id, media_id,
server_name, server_name,
media_type, media_type,