summary refs log tree commit diff
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2016-04-08 19:52:23 +0100
committerMark Haines <mark.haines@matrix.org>2016-04-08 19:52:23 +0100
commitb36270b5e1c7599fccc45e0b8ea7a697dd5f0ccd (patch)
tree9ccb38eba3b5c9bde2b1bcbd6942cb5fc2c072e2
parentmove local_media_repository_url_cache.sql to schema v31 (diff)
downloadsynapse-b36270b5e1c7599fccc45e0b8ea7a697dd5f0ccd.tar.xz
Fix pep8 warning
-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