mirror of
https://github.com/element-hq/synapse
synced 2024-09-01 07:30:21 +00:00
Make sure we pass a tuple to string '%' formatting
This commit is contained in:
parent
4f37c0ea9d
commit
b5eb9124f7
1 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@ class BaseMediaResource(Resource):
|
||||||
except:
|
except:
|
||||||
raise SynapseError(
|
raise SynapseError(
|
||||||
400,
|
400,
|
||||||
"Missing integer argument %r" % (arg_name),
|
"Missing integer argument %r" % (arg_name,),
|
||||||
Codes.UNKNOWN,
|
Codes.UNKNOWN,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ class BaseMediaResource(Resource):
|
||||||
except:
|
except:
|
||||||
raise SynapseError(
|
raise SynapseError(
|
||||||
400,
|
400,
|
||||||
"Missing string argument %r" % (arg_name),
|
"Missing string argument %r" % (arg_name,),
|
||||||
Codes.UNKNOWN,
|
Codes.UNKNOWN,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue