summary refs log tree commit diff
path: root/synapse/media/v1/base_resource.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2014-12-11 10:08:09 +0000
committerMark Haines <mark.haines@matrix.org>2014-12-11 10:08:09 +0000
commitb5eb9124f70a0f5196f8508f24e4566e8a5c0e90 (patch)
tree216a0c1f0bfc6ed0ad67e22884a5f7f8cd7b3484 /synapse/media/v1/base_resource.py
parentMerge branch 'develop' into media_repository (diff)
downloadsynapse-b5eb9124f70a0f5196f8508f24e4566e8a5c0e90.tar.xz
Make sure we pass a tuple to string '%' formatting
Diffstat (limited to 'synapse/media/v1/base_resource.py')
-rw-r--r--synapse/media/v1/base_resource.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/media/v1/base_resource.py b/synapse/media/v1/base_resource.py
index 81f2456343..8c62ecd597 100644
--- a/synapse/media/v1/base_resource.py
+++ b/synapse/media/v1/base_resource.py
@@ -93,7 +93,7 @@ class BaseMediaResource(Resource):
         except:
             raise SynapseError(
                 400,
-                "Missing integer argument %r" % (arg_name),
+                "Missing integer argument %r" % (arg_name,),
                 Codes.UNKNOWN,
             )
 
@@ -107,7 +107,7 @@ class BaseMediaResource(Resource):
         except:
             raise SynapseError(
                 400,
-                "Missing string argument %r" % (arg_name),
+                "Missing string argument %r" % (arg_name,),
                 Codes.UNKNOWN,
             )