Skip to content

Commit 9857041

Browse files
committed
Update HierarchyBlock.py
1 parent e821959 commit 9857041

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

edg/core/HierarchyBlock.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,13 @@ def __getattribute__(self, item: str) -> Any:
125125
if item.startswith("_"):
126126
return super().__getattribute__(item)
127127
else:
128-
raise AttributeError(f"BlockPrototype has no attributes, must bind to get a concrete Block instance, tried to get {item}")
128+
raise AttributeError(f"{self.__class__.__name__} has no attributes, must bind to get a concrete instance, tried to get {item}")
129129

130130
def __setattr__(self, key: str, value: Any) -> None:
131131
if key.startswith("_"):
132132
super().__setattr__(key, value)
133133
else:
134-
raise AttributeError(f"BlockPrototype has no attributes, must bind to get a concrete Block instance, tried to set {key}")
134+
raise AttributeError(f"{self.__class__.__name__} has no attributes, must bind to get a concrete instance, tried to set {key}")
135135

136136

137137
class BlockMeta(BaseBlockMeta):

0 commit comments

Comments
 (0)