From 8ce77e81eb2faf8c6fcb4684f5e4ca1432fbf876 Mon Sep 17 00:00:00 2001 From: Andrew Case Date: Sat, 1 Mar 2025 14:47:00 -0600 Subject: [PATCH] Report the memer name and type when attributes cannot be found --- 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 cfbade5fc..12cd1d988 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() + raise AttributeError(f"Unable to find {attr} for type {self.vol.type_name}") @property def vol(self) -> ReadOnlyMapping: