From 3cbdf8acdf2455e9511e5021f33bf2357aa5f4ef Mon Sep 17 00:00:00 2001 From: Irha batool Date: Sun, 21 Jun 2026 22:19:06 +0500 Subject: [PATCH] Replace crash with graceful error handling in ListRequirement.unsatisfied --- volatility3/framework/configuration/requirements.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/volatility3/framework/configuration/requirements.py b/volatility3/framework/configuration/requirements.py index b1cc716e55..aefc27af15 100644 --- a/volatility3/framework/configuration/requirements.py +++ b/volatility3/framework/configuration/requirements.py @@ -148,8 +148,11 @@ def unsatisfied( elif value is None: context.config[config_path] = [] if not isinstance(value, list): - # TODO: Check this is the correct response for an error - raise TypeError(f"Unexpected config value found: {repr(value)}") + vollog.log( + constants.LOGLEVEL_V, + f"TypeError - Unexpected config value found, expected list: {repr(value)}", + ) + return {config_path: self} if not (self.min_elements <= len(value)): vollog.log( constants.LOGLEVEL_V,