From 6b3bbad537d303a41f21bf4d81899eb11dcffcdf Mon Sep 17 00:00:00 2001 From: Gustavo Moreira Date: Tue, 9 Jan 2024 16:13:33 -0300 Subject: [PATCH] Fix exception. Although it will be auto-instantiated it's better to explicitily use the exception instance --- 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 ab568b927..b74267197 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() @property def vol(self) -> ReadOnlyMapping: