From 87f1cf42da9d219725102fb3e4b61024286c6995 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 26 Apr 2023 11:26:08 +0200 Subject: [PATCH] Do not fail to update chart if parent template is no more a template --- modules/account/account.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = (