galaxy-dist commit e177f00679e9: trackster fix now skips incorrect twobit.loc locations
# HG changeset patch -- Bitbucket.org # Project galaxy-dist # URL http://bitbucket.org/galaxy/galaxy-dist/overview # User Kanwei Li <kanwei@gmail.com> # Date 1277317926 14400 # Node ID e177f00679e9f8106c346251c1f8bdc0ece127d5 # Parent 067a8649dae79ab973ff3821b62be89e21a0117a trackster fix now skips incorrect twobit.loc locations --- a/lib/galaxy/web/controllers/tracks.py +++ b/lib/galaxy/web/controllers/tracks.py @@ -101,8 +101,10 @@ class TracksController( BaseController, avail_genomes = {} for line in open( os.path.join( trans.app.config.tool_data_path, "twobit.loc" ) ): if line.startswith("#"): continue - key, path = line.split() - avail_genomes[key] = path + val = line.split() + if len(val) == 2: + key, path = val + avail_genomes[key] = path self.available_genomes = avail_genomes @web.expose
participants (1)
-
commits-noreply@bitbucket.org