Make sure we pass a tuple to string '%' formatting

This commit is contained in:
Mark Haines 2014-12-11 10:08:09 +00:00
parent 4f37c0ea9d
commit b5eb9124f7

View file

@ -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,
)