commit/galaxy-central: greg: Make sure a valid tool has a guid.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/2ec5e00abdc5/ changeset: 2ec5e00abdc5 user: greg date: 2012-04-02 22:16:37 summary: Make sure a valid tool has a guid. affected #: 1 file diff -r 080242921d9fb538b280a31260c687a0053a3eb7 -r 2ec5e00abdc56eb3bd0c453cfc5e7707c7aab593 lib/galaxy/util/shed_util.py --- a/lib/galaxy/util/shed_util.py +++ b/lib/galaxy/util/shed_util.py @@ -45,10 +45,11 @@ if 'tools' in metadata: tool_dicts = metadata[ 'tools' ] for tool_dict in tool_dicts: - guid = tool_dict[ 'guid' ] - if guid not in processed_guids: - valid_tools += 1 - processed_guids.append( guid ) + if 'guid' in tool_dict: + guid = tool_dict[ 'guid' ] + if guid not in processed_guids: + valid_tools += 1 + processed_guids.append( guid ) processed_repository_ids.append( repository.id ) return valid_tools 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)
-
Bitbucket