Commits

Johannes Köster committed 8f9d08d

Raise error if input function returns the wrong data type.

Comments (0)

Files changed (1)

snakemake/rules.py

                     if not_iterable(item):
                         item = [item]
                     for item_ in item:
+                        if not isinstance(item_, str):
+                            raise RuleException("Input function did not return str or list of str.", rule=self)
                         concrete = concretize(item_, wildcards)
                         newitems.append(concrete)
                         if ruleio is not None: