From f5e371bf5c8ef307dfe77defa242534d4b187778 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Mon, 16 Jan 2023 00:20:40 +0000 Subject: [PATCH] Store dict in match field if empty --- core/lib/rules.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/lib/rules.py b/core/lib/rules.py index f59cd1b..0c81a6f 100644 --- a/core/lib/rules.py +++ b/core/lib/rules.py @@ -159,6 +159,8 @@ class NotificationRuleData(object): Get a match result for an index. """ if self.object.match is None: + self.object.match = {} + self.object.save() return None if not isinstance(self.object.match, dict): return None