commit/galaxy-central: greg: Handle case where no network is available when attempting to determine repository dependencies for an installed repository.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/aac938e8ba6f/ Changeset: aac938e8ba6f User: greg Date: 2014-04-22 16:33:42 Summary: Handle case where no network is available when attempting to determine repository dependencies for an installed repository. Affected #: 1 file diff -r 4f4725c1b0ef515a3b8d2e9b62322a6de3feaa32 -r aac938e8ba6f11adaa2240560a13cca7263025b0 lib/tool_shed/util/repository_dependency_util.py --- a/lib/tool_shed/util/repository_dependency_util.py +++ b/lib/tool_shed/util/repository_dependency_util.py @@ -361,7 +361,11 @@ str( repository.changeset_revision ) ) url = common_util.url_join( tool_shed_url, 'repository/get_repository_dependencies%s' % params ) - raw_text = common_util.tool_shed_get( trans.app, tool_shed_url, url ) + try: + raw_text = common_util.tool_shed_get( trans.app, tool_shed_url, url ) + except Exception, e: + print "The URL\n%s\nraised the exception:\n%s\n" % ( url, str( e ) ) + return '' if len( raw_text ) > 2: encoded_text = json.from_json_string( raw_text ) text = encoding_util.tool_shed_decode( encoded_text ) 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