summary refs log tree commit diff
path: root/synapse/rest/client/v1/push_rule.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/rest/client/v1/push_rule.py')
-rw-r--r--synapse/rest/client/v1/push_rule.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/synapse/rest/client/v1/push_rule.py b/synapse/rest/client/v1/push_rule.py
index 3a08bdd9af..52f2b19bbe 100644
--- a/synapse/rest/client/v1/push_rule.py
+++ b/synapse/rest/client/v1/push_rule.py
@@ -242,8 +242,11 @@ class PushRuleRestServlet(ClientV1RestServlet):
                     continue
                 if instance_handle not in rules['device']:
                     rules['device'][instance_handle] = {}
-                    rules['device'][instance_handle] = \
-                        _add_empty_priority_class_arrays(rules['device'][instance_handle])
+                    rules['device'][instance_handle] = (
+                        _add_empty_priority_class_arrays(
+                            rules['device'][instance_handle]
+                        )
+                    )
 
                 rulearray = rules['device'][instance_handle][template_name]
             else: