Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing tools wf editor alternative #4552

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/galaxy/managers/workflows.py
Expand Up @@ -568,6 +568,9 @@ def _workflow_to_dict_export(self, trans, stored=None, workflow=None):
module = module_factory.from_workflow_step(trans, step)
if not module:
return None
if module.type == 'tool' and not module.tool:
msg = "Cannot download workflow because the tool '%s' is missing in step %s." % (step.tool_id, step.order_index)
raise exceptions.ToolMissingException(msg)
# Get user annotation.
annotation_str = self.get_item_annotation_str(trans.sa_session, trans.user, step) or ''
content_id = module.get_content_id()
Expand Down
3 changes: 1 addition & 2 deletions lib/galaxy/workflow/modules.py
Expand Up @@ -618,8 +618,7 @@ def from_workflow_step(Class, trans, step, **kwds):
log.debug(message)
module.version_changes.append(message)
else:
# The tool is not installed
raise ToolMissingException("Tool %s missing. Cannot build workflow module." % tool_id)
log.warning("The tool '%s' is missing. Cannot build workflow module." % tool_id)
return module

# ---- Saving in various forms ------------------------------------------
Expand Down