Report the memer name and type when attributes cannot be found

This commit is contained in:
Andrew Case
2025-03-01 14:47:00 -06:00
parent 795b853ad5
commit 8ce77e81eb
+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()
raise AttributeError(f"Unable to find {attr} for type {self.vol.type_name}")
@property
def vol(self) -> ReadOnlyMapping: