Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix typo in request validation for adding push rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Haines committed Feb 16, 2016
1 parent c2025c0 commit 458782b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/rest/client/v1/push_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 458782b

Please sign in to comment.