1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/be28a5fda9dd/ Changeset: be28a5fda9dd User: martenson Date: 2015-01-29 16:43:29+00:00 Summary: found a known Whoosh bug, trying to avoid it https://bitbucket.org/mchaput/whoosh/issue/386/keyerror-1l Affected #: 2 files diff -r e3196615d5faf9c0b713933664150e9cc1ef1e21 -r be28a5fda9ddbc05df0e545a3a85434630212433 lib/galaxy/webapps/tool_shed/search/repo_search.py --- a/lib/galaxy/webapps/tool_shed/search/repo_search.py +++ b/lib/galaxy/webapps/tool_shed/search/repo_search.py @@ -49,7 +49,12 @@ # Arbitrary for now reasonable_hits = 100.0 - times_downloaded = int( searcher.stored_fields( docnum )[ "times_downloaded" ] ) + + stored_times_downloaded = searcher.stored_fields( docnum )[ "times_downloaded" ] + if not isinstance( stored_times_downloaded, ( int, long ) ): + times_downloaded = int( stored_times_downloaded ) + else: + times_downloaded = stored_times_downloaded # Add 1 to prevent 0 being divided if times_downloaded == 0: times_downloaded = 1 diff -r e3196615d5faf9c0b713933664150e9cc1ef1e21 -r be28a5fda9ddbc05df0e545a3a85434630212433 scripts/tool_shed/build_ts_whoosh_index.py --- a/scripts/tool_shed/build_ts_whoosh_index.py +++ b/scripts/tool_shed/build_ts_whoosh_index.py @@ -93,7 +93,10 @@ long_description = repo.long_description homepage_url = repo.homepage_url remote_repository_url = repo.remote_repository_url + times_downloaded = repo.times_downloaded + if not isinstance( times_downloaded, ( int, long ) ): + times_downloaded = 0 repo_owner_username = '' if repo.user_id is not None: 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.