From ef0216d0803e2cdf5748947512422c32c51383ba Mon Sep 17 00:00:00 2001 From: Matthias Bernt Date: Thu, 19 Dec 2024 10:19:28 +0100 Subject: [PATCH] check for empty shed fields fixes https://github.com/galaxyproject/planemo/issues/1485 --- planemo/shed_lint.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/planemo/shed_lint.py b/planemo/shed_lint.py index b3d03760b..64642cbd7 100644 --- a/planemo/shed_lint.py +++ b/planemo/shed_lint.py @@ -148,6 +148,8 @@ def lint_shed_metadata(realized_repository, lint_ctx): if key not in realized_repository.config: found_all = False lint_ctx.warn("Missing shed metadata field [%s] for repository" % key) + if realized_repository.config[key] is None: + lint_ctx.warn("shed metadata field [%s] was given, but is empty" % key) if found_all: lint_ctx.info("Found all shed metadata fields required for automated repository " "creation and/or updates.")