mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-10 03:37:39 +02:00
simplify check
This commit is contained in:
@@ -268,7 +268,7 @@ class Modules(interfaces.configuration.VersionableInterface):
|
||||
f"Invalid gatherer sent through `caller_wanted_gatherers`: {gatherer}"
|
||||
)
|
||||
|
||||
if gatherer.name is None or len(gatherer.name) == 0:
|
||||
if not gatherer.name:
|
||||
raise ValueError(
|
||||
f"{gatherer} does not have a valid name attribute, which is required. It must be a non-zero length string."
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user