summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
Diffstat (limited to 'synapse')
-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',