summary refs log tree commit diff
path: root/synapse/rest/client/v1/push_rule.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-01-23 13:25:58 +0000
committerDavid Baker <dave@matrix.org>2015-01-23 13:25:58 +0000
commitd3e72b4d8788e64cd4b1d9668382639476730b4d (patch)
tree2a56c893ee108acd34b3fbca0ca61998f8a259a2 /synapse/rest/client/v1/push_rule.py
parentredundant parens (diff)
downloadsynapse-d3e72b4d8788e64cd4b1d9668382639476730b4d.tar.xz
Make string format tuple an actual tuple
Diffstat (limited to 'synapse/rest/client/v1/push_rule.py')
-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 46b8c3f625..35ffcba3df 100644
--- a/synapse/rest/client/v1/push_rule.py
+++ b/synapse/rest/client/v1/push_rule.py
@@ -102,7 +102,7 @@ class PushRuleRestServlet(RestServlet):
                 'pattern': req_obj['pattern']
             }]
         else:
-            raise InvalidRuleException("Unknown rule template: %s" % (rule_template))
+            raise InvalidRuleException("Unknown rule template: %s" % (rule_template,))
 
         if device:
             conditions.append({