Skip to content

Commit

Permalink
fix: do not try to consider bool settings as tagged. This fixes the e…
Browse files Browse the repository at this point in the history
…rror TypeError: 'bool' object is not iterable occurring with some plugins.
  • Loading branch information
johanneskoester committed Feb 14, 2024
1 parent 9cf125c commit 49e47ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion snakemake_interface_common/plugin_registry/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ def extract_values(value, thefield, name, tag=None):
else:
kwargs_tagged[tag][name] = value

if self.support_tagged_values:
# for now, bool values cannot be tagged and thereby apply to all instances
if self.support_tagged_values and thefield.type != bool:
if value != MISSING:
for item in value:
splitted = item.split("::", 1)
Expand Down

0 comments on commit 49e47ac

Please sign in to comment.