From d8875d27e776a05e468e3c61d80bd6166bf08a3d Mon Sep 17 00:00:00 2001 From: John Chilton Date: Thu, 5 Feb 2015 13:33:59 -0500 Subject: [PATCH] Bugfix for bugfix d3b1f6b. d3b1f6b fix the GUI (in an obsecure use) but broke fairly typical uses of the API. --- lib/galaxy/workflow/modules.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/galaxy/workflow/modules.py b/lib/galaxy/workflow/modules.py index d25f0023cf1..2f93a7470aa 100644 --- a/lib/galaxy/workflow/modules.py +++ b/lib/galaxy/workflow/modules.py @@ -324,7 +324,9 @@ class InputModule( SimpleWorkflowModule ): # so do that now so dependent steps can be recalculated. In the future # everything should come in from the API and this can be eliminated. if not invocation.has_input_for_step( step.id ): - invocation.add_input( step_outputs.values()[ 0 ], step.id ) + content = step_outputs.values()[ 0 ] + if content: + invocation.add_input( content, step.id ) progress.set_outputs_for_input( step, step_outputs ) return job