Merge pull request #1674 from volatilityfoundation/change_reported_type

Change the type information reported for missing attributes
This commit is contained in:
ikelos
2025-03-08 20:30:58 +00:00
committed by GitHub
+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: