summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-01-28 14:27:01 +0000
committerDavid Baker <dave@matrix.org>2015-01-28 14:27:01 +0000
commitd93ce29a86b79478bfb2011c9b8d3c8ec7d0bdd0 (patch)
treebb3767e67a0942e9a218390bf6a03e7da95f27ad /synapse/rest
parentBrackets are nicer (diff)
downloadsynapse-d93ce29a86b79478bfb2011c9b8d3c8ec7d0bdd0.tar.xz
Ah, the comma of doom.
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/client/v1/push_rule.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v1/push_rule.py b/synapse/rest/client/v1/push_rule.py
index b03d804d82..c6085370a4 100644
--- a/synapse/rest/client/v1/push_rule.py
+++ b/synapse/rest/client/v1/push_rule.py
@@ -101,7 +101,7 @@ class PushRuleRestServlet(ClientV1RestServlet):
             if pat.strip("*?[]") == pat:
                 # no special glob characters so we assume the user means
                 # 'contains this string' rather than 'is this string'
-                pat = "*%s*" % (pat)
+                pat = "*%s*" % (pat,)
             conditions = [{
                 'kind': 'event_match',
                 'key': 'content.body',