summary refs log tree commit diff
path: root/synapse/rest/client/v1/push_rule.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2016-02-16 18:00:30 +0000
committerMark Haines <mark.haines@matrix.org>2016-02-16 18:00:30 +0000
commit458782bf67ef7c188af752b0f455d4a0f9f4cdd5 (patch)
tree66652f4b92a33041b58659ee2022d4a00bbd58c4 /synapse/rest/client/v1/push_rule.py
parentMerge pull request #578 from matrix-org/markjh/idempotent_rules (diff)
downloadsynapse-458782bf67ef7c188af752b0f455d4a0f9f4cdd5.tar.xz
Fix typo in request validation for adding push rules.
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 96633a176c..7766b8be1d 100644
--- a/synapse/rest/client/v1/push_rule.py
+++ b/synapse/rest/client/v1/push_rule.py
@@ -400,7 +400,7 @@ def _filter_ruleset_with_path(ruleset, path):
 
 def _priority_class_from_spec(spec):
     if spec['template'] not in PRIORITY_CLASS_MAP.keys():
-        raise InvalidRuleException("Unknown template: %s" % (spec['kind']))
+        raise InvalidRuleException("Unknown template: %s" % (spec['template']))
     pc = PRIORITY_CLASS_MAP[spec['template']]
 
     if spec['scope'] == 'device':