Skip to content

Commit

Permalink
Fix key error for non-tool workflow steps (i.e collection input)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Nov 6, 2017
1 parent 41e2558 commit fd16b3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/webapps/galaxy/api/workflows.py
Expand Up @@ -166,8 +166,8 @@ def get_workflows_list(self, trans, kwd):
workflow_details = self.workflow_contents_manager.workflow_to_dict(trans, self.__get_stored_workflow(trans, value['id']), style='instance')
if 'steps' in workflow_details:
for step in workflow_details['steps']:
tool_id = workflow_details['steps'][step]['tool_id']
if tool_id not in tool_ids and self.app.toolbox.is_missing_shed_tool(tool_id):
tool_id = workflow_details['steps'][step].get('tool_id')
if tool_id and tool_id not in tool_ids and self.app.toolbox.is_missing_shed_tool(tool_id):
tool_ids.append(tool_id)
if len(tool_ids) > 0:
value['missing_tools'] = tool_ids
Expand Down

0 comments on commit fd16b3d

Please sign in to comment.