fix a logging error in thumbnailer (#8435)

Introduced in #8236
pull/108/head
Richard van der Hoff 4 years ago committed by GitHub
parent 50e5174e86
commit b1f4e6e4fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      changelog.d/8435.bugfix
  2. 2
      synapse/rest/media/v1/media_repository.py

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

@ -637,7 +637,7 @@ class MediaRepository:
thumbnailer = Thumbnailer(input_path)
except ThumbnailError as e:
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,
server_name,
media_type,

Loading…
Cancel
Save