Skip to content

Commit 0eac942

Browse files
authored
Enhance pkg_name validation in feedstock_outputs.py
Update validation to check for non-empty string in pkg_name.
1 parent 70d1807 commit 0eac942

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

conda_forge_admin_requests/feedstock_outputs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ def check(request):
9595
)
9696
r.raise_for_status()
9797
for pkg_name in pkgs:
98-
if not isinstance(pkg_name, str):
98+
if not isinstance(pkg_name, str) or len(pkg_name) == 1
9999
raise ValueError(
100-
f"Value for '{feedstock}' entry must be a str (output name, or a glob), "
101-
f"but you provided {pkg_name:!r}."
100+
f"Value for '{feedstock}' entry must be a list of str (output name, or a glob), "
101+
f"but you provided {pkg_name:!r} from {pkgs:!r}."
102102
)
103103

104104

0 commit comments

Comments
 (0)