commit/galaxy-central: greg: Handle invalid tool panel section keys when installing tool shed repositories that contain tools to be displayed in the Galaxy tool panel.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/3a073074d40e/ Changeset: 3a073074d40e User: greg Date: 2013-04-16 17:22:23 Summary: Handle invalid tool panel section keys when installing tool shed repositories that contain tools to be displayed in the Galaxy tool panel. Affected #: 1 file diff -r 49ca2f03569e75de83c87e8a43166732236d3d7a -r 3a073074d40ed9e40f09660be8d8afb562f041c8 lib/tool_shed/galaxy_install/repository_util.py --- a/lib/tool_shed/galaxy_install/repository_util.py +++ b/lib/tool_shed/galaxy_install/repository_util.py @@ -354,7 +354,11 @@ def install_tool_shed_repository( trans, tool_shed_repository, repo_info_dict, tool_panel_section_key, shed_tool_conf, tool_path, install_tool_dependencies, reinstalling=False ): if tool_panel_section_key: - tool_section = trans.app.toolbox.tool_panel[ tool_panel_section_key ] + try: + tool_section = trans.app.toolbox.tool_panel[ tool_panel_section_key ] + except KeyError: + log.debug( 'Invalid tool_panel_section_key "%s" specified. Tools will be loaded outside of sections in the tool panel.' ) + tool_section = None else: tool_section = None if isinstance( repo_info_dict, basestring ): Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org