diff --git a/modules/account/account.py b/modules/account/account.py index 80c8713dd3..3819ea637a 100644 --- a/modules/account/account.py +++ b/modules/account/account.py @@ -434,8 +434,8 @@ class Type( if child.template: if not child.template_override: if child.template.parent: - parent = template2type[ - child.template.parent.id] + parent = template2type.get( + child.template.parent.id) else: parent = None old_parent = (