commit/galaxy-central: greg: Handle unavailable tool shed when checking for updates to installed tool shed repositories at Galaxy server startup.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/3c8f65f7e1a4/ changeset: 3c8f65f7e1a4 user: greg date: 2012-10-01 22:31:25 summary: Handle unavailable tool shed when checking for updates to installed tool shed repositories at Galaxy server startup. affected #: 1 file diff -r 348ae95c02cca1d6d1b446738631ecbcf76c810a -r 3c8f65f7e1a4f4217499f2369907a75a8dbcb4e9 lib/galaxy/tool_shed/update_manager.py --- a/lib/galaxy/tool_shed/update_manager.py +++ b/lib/galaxy/tool_shed/update_manager.py @@ -36,9 +36,13 @@ tool_shed_url = get_url_from_repository_tool_shed( self.app, repository ) url = '%s/repository/check_for_updates?name=%s&owner=%s&changeset_revision=%s&webapp=update_manager' % \ ( tool_shed_url, repository.name, repository.owner, repository.changeset_revision ) - response = urllib2.urlopen( url ) - text = response.read() - response.close() + try: + response = urllib2.urlopen( url ) + text = response.read() + response.close() + except Exception, e: + # The required tool shed may be unavailable. + text = 'False' return string_as_bool( text ) def shutdown( self ): self.running = False 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