Skip to content

Commit a1e5d2c

Browse files
committed
Set empty dicts to avoid additional errors when config is invalid
1 parent e22fc9e commit a1e5d2c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: reactbot/config.py

+3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ def do_update(self, helper: ConfigUpdateHelper) -> None:
4444

4545
def parse_data(self) -> None:
4646
self.default_flags = re.RegexFlag(0)
47+
self.templates = {}
48+
self.rules = {}
49+
4750
self.default_flags = self._get_flags(self["default_flags"])
4851
self.templates = {name: self._make_template(name, tpl)
4952
for name, tpl in self["templates"].items()}

0 commit comments

Comments
 (0)