From 9d1a68256506d797cb3bd4e38986e484611f788f Mon Sep 17 00:00:00 2001 From: eve Date: Fri, 28 Mar 2025 13:36:32 +0000 Subject: [PATCH] remove unneeded else, this case is caught with finally --- volatility3/cli/volshell/generic.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/volatility3/cli/volshell/generic.py b/volatility3/cli/volshell/generic.py index 4ebda12a2..d6d2fdcc8 100644 --- a/volatility3/cli/volshell/generic.py +++ b/volatility3/cli/volshell/generic.py @@ -404,8 +404,6 @@ class Volshell(interfaces.plugins.PluginInterface): # follow at most MAX_DEREFERENCE_COUNT pointers. A guard against, hopefully unlikely, infinite loops if depth < MAX_DEREFERENCE_COUNT: return self._get_type_name_with_pointer(sub_member_type, depth + 1) - else: - return member_type_name except AttributeError: pass # not all objects get a `object_class`, and those that don't are not pointers. finally: