Commits

Kanwei Li committed e177f00

trackster fix now skips incorrect twobit.loc locations

  • Participants
  • Parent commits 067a864

Comments (0)

Files changed (1)

lib/galaxy/web/controllers/tracks.py

         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