Commits

Johannes Köster committed becb1a6

Fixed a NonType error occuring if an input function returns more than one file.

  • Participants
  • Parent commits 5ff8060

Comments (0)

Files changed (2)

File snakemake/rules.py

             for name, item in olditems.allitems():
                 start = len(newitems)
                 if callable(item):
-                    items = item(wildcards_obj)
+                    item = item(wildcards_obj)
                     if not_iterable(item):
-                        items = [items]
-                    for item_ in items:
+                        item = [item]
+                    for item_ in item:
                         concrete = concretize(item_, wildcards)
                         newitems.append(concrete)
                         if ruleio is not None:

File tests/test01/Snakefile

 rule rule2:
 	input: testin
 	output: 'test.inter'
-	message: 'Copying {input[0]} to {output[0]}'
+#	message: 'Copying {input[0]} to {output[0]}'
 	shell: 
 		'''
 		cp {input[0]} {output[0]}