1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/commits/9faa9a2ab1e5/ Changeset: 9faa9a2ab1e5 User: greg Date: 2014-04-28 15:45:01 Summary: Fix for the install_repository_revision function in the Galaxy API: a more correct and informative message is now displayed if any of the request parameters is invalid. Affected #: 1 file
diff -r dc9fb7fba975f6169d9ee8eb257bf477d7d4274c -r 9faa9a2ab1e544b8ba705b3e320d2166d7a6ee88 lib/galaxy/webapps/galaxy/api/tool_shed_repositories.py --- a/lib/galaxy/webapps/galaxy/api/tool_shed_repositories.py +++ b/lib/galaxy/webapps/galaxy/api/tool_shed_repositories.py @@ -230,8 +230,18 @@ ( str( tool_shed_url ), str( changeset_revision ), str( name ), str( owner ), str( e ) ) log.debug( message ) return dict( status='error', error=message ) + # Make sure the tool shed returned everything we need for installing the repository. + if not repository_revision_dict or not repo_info_dict: + key = kwd.get( 'key', None ) + invalid_parameter_message = "No information is available for the requested repository revision.\n" + invalid_parameter_message += "One or more of the following parameter values is likely invalid:\n" + invalid_parameter_message += "key: %s\n" % str( key ) + invalid_parameter_message += "tool_shed_url: %s\n" % str( tool_shed_url ) + invalid_parameter_message += "name: %s\n" % str( name ) + invalid_parameter_message += "owner: %s\n" % str( owner ) + invalid_parameter_message += "changeset_revision: %s\n" % str( changeset_revision ) + raise HTTPBadRequest( detail=invalid_parameter_message ) repo_info_dicts = [ repo_info_dict ] - # Make sure the tool shed returned everything we need for installing the repository. try: has_repository_dependencies = repository_revision_dict[ 'has_repository_dependencies' ] except:
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.
galaxy-commits@lists.galaxyproject.org