summary refs log tree commit diff
path: root/synapse/rest/media
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/rest/media')
-rw-r--r--synapse/rest/media/v1/preview_url_resource.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/synapse/rest/media/v1/preview_url_resource.py b/synapse/rest/media/v1/preview_url_resource.py
index 2c86a74c7c..4df9099499 100644
--- a/synapse/rest/media/v1/preview_url_resource.py
+++ b/synapse/rest/media/v1/preview_url_resource.py
@@ -100,9 +100,10 @@ class PreviewUrlResource(BaseMediaResource):
                     for attrib in entry:
                         pattern = entry[attrib]
                         value = getattr(url_tuple, attrib)
-                        logger.debug("Matching attrib '%s' with value '%s' against pattern '%s'" % (
-                            attrib, value, pattern
-                        ))
+                        logger.debug((
+                            "Matching attrib '%s' with value '%s' against"
+                            " pattern '%s'"
+                        ) % (attrib, value, pattern))
 
                         if value is None:
                             match = False