You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
compute_tags() filters out empty tags before stripping whitespace, so whitespace-only values like " " become empty strings ("") instead of being removed.
For example, compute_tags(["wikipedia"], "a; ") returns {"", "a", "wikipedia"}.
This contradicts the docstring, which says empty values are removed. A scraper that passes the result to TagsMetadata (for example from --tags "a; b; ") gets ValueError: Missing value (empty not allowed).
Proposed fix: strip whitespace from each tag before filtering out empty values, and add a test case in tests/inputs/test_inputs.py to cover whitespace-only tags.
Activity
benoit74 commentedon Nov 23, 2026
This is indeed a bug which should be fixed