Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions volatility3/framework/configuration/requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down