This commit is contained in:
Thomas Krijnen
2026-01-10 11:52:05 +01:00
parent 991556fbe3
commit 0604db06e9
2 changed files with 2 additions and 4 deletions
@@ -100,9 +100,7 @@ class entity_instance_mixin:
INVALID, FORWARD, INVERSE, DERIVED = range(4)
attr_cat = self.get_attribute_category(name)
if attr_cat == INVALID:
raise AttributeError(
"entity instance of type '%s' has no attribute '%s'" % (self.is_a(True), name)
)
raise AttributeError("entity instance of type '%s' has no attribute '%s'" % (self.is_a(True), name))
elif attr_cat == FORWARD:
idx = self.get_argument_index(name)
return self.get_argument(idx)