Skip to content

Commit

Permalink
Access tool.lineage only if tool was loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Jun 24, 2017
1 parent 31ac48f commit 1e11c46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/galaxy/webapps/galaxy/controllers/admin_toolshed.py
Expand Up @@ -2064,7 +2064,8 @@ def view_tool_metadata( self, trans, repository_id, tool_id, **kwd ):
tool = trans.app.toolbox.load_tool( os.path.abspath( tool_config ), guid=tool_metadata[ 'guid' ] )
if tool:
tool._lineage = trans.app.toolbox._lineage_map.register( tool )
tool_lineage = tool.lineage.get_version_ids(reverse=True)
if tool:
tool_lineage = tool.lineage.get_version_ids(reverse=True)
break
return trans.fill_template( "/admin/tool_shed_repository/view_tool_metadata.mako",
repository=repository,
Expand Down

0 comments on commit 1e11c46

Please sign in to comment.