Change the type information reported for missing attributes

This commit is contained in:
Andrew Case
2025-03-07 03:17:52 +00:00
parent 043c64cf53
commit aac0566c90
+1 -1
View File
@@ -133,7 +133,7 @@ class ObjectInterface(metaclass=abc.ABCMeta):
def __getattr__(self, attr: str) -> Any:
"""Method for ensuring volatility members can be returned."""
raise AttributeError(f"Unable to find {attr} for type {self.vol.type_name}")
raise AttributeError(f"Unable to find {attr} for type {type(self)}")
@property
def vol(self) -> ReadOnlyMapping: