added check for template value that it is a string

This commit is contained in:
iLLiCiTiT 2020-08-06 11:06:16 +02:00
parent 3770d642e9
commit def7fa7e08

View file

@ -83,7 +83,7 @@ class Delivery(BaseAction):
first = None
for key, template in (anatomy.templates.get("delivery") or {}).items():
# Use only keys with `{root}` or `{root[*]}` in value
if "{root" in template:
if isinstance(template, str) and "{root" in template:
new_anatomies.append({
"label": key,
"value": key