simplify check

This commit is contained in:
Andrew Case
2025-03-15 19:10:00 +00:00
parent e79f03691a
commit 9da147df1b
@@ -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."
)