1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/fd80283b2436/ changeset: fd80283b2436 user: dan date: 2012-10-16 19:43:06 summary: Better handle missing 'tool' entry in tool repository metadata. affected #: 1 file diff -r 0391351559dd124f305245a9d27f071f28debc54 -r fd80283b2436db14f08e050711f619d393941cca lib/galaxy/util/shed_util.py --- a/lib/galaxy/util/shed_util.py +++ b/lib/galaxy/util/shed_util.py @@ -259,7 +259,7 @@ can_generate_dependency_metadata = False tool_dependency_name = elem.get( 'name', None ) if tool_dependency_name and tool_dependency_version: - for tool_dict in metadata_dict[ 'tools' ]: + for tool_dict in metadata_dict.get( 'tools', [] ): requirements = tool_dict.get( 'requirements', [] ) for requirement_dict in requirements: req_name = requirement_dict.get( 'name', None ) @@ -281,7 +281,7 @@ # <environment_variable name="R_SCRIPT_PATH" action="set_to">$REPOSITORY_INSTALL_DIR</environment_variable> env_var_name = env_var_elem.get( 'name', None ) if env_var_name: - for tool_dict in metadata_dict[ 'tools' ]: + for tool_dict in metadata_dict.get( 'tools', [] ): requirements = tool_dict.get( 'requirements', [] ) for requirement_dict in requirements: # {"name": "R_SCRIPT_PATH", "type": "set_environment", "version": null} 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.