fix root_value_for_template method in Anatomy

This commit is contained in:
iLLiCiTiT 2021-04-07 17:33:41 +02:00
parent 16d4e9f0c7
commit dd82401259

View file

@ -216,7 +216,7 @@ class Anatomy:
"""Returns value of root key from template."""
root_templates = []
for group in re.findall(self.root_key_regex, template):
root_templates.append(group)
root_templates.append("{" + group + "}")
if not root_templates:
return None