From aac0566c903af72cbc81a423d67b2ca94c2ba659 Mon Sep 17 00:00:00 2001 From: Andrew Case Date: Fri, 7 Mar 2025 03:17:52 +0000 Subject: [PATCH] Change the type information reported for missing attributes --- volatility3/framework/interfaces/objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/volatility3/framework/interfaces/objects.py b/volatility3/framework/interfaces/objects.py index 12cd1d988..62c31481b 100644 --- a/volatility3/framework/interfaces/objects.py +++ b/volatility3/framework/interfaces/objects.py @@ -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: