Skip to content

Commit

Permalink
patch corner case where null chromosome caused gene service to crash
Browse files Browse the repository at this point in the history
  • Loading branch information
hpratt committed Jan 26, 2022
1 parent 78fc063 commit b61c48e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/api/data_ws.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def cre_table(self, j, args):
"end": j["coord_end"]
},
"assembly": self.assembly,
"chromosome": chrom,
"chromosome": chrom if chrom is not None else "chrM",
"start": j["coord_start"] - 5000000,
"end": j["coord_end"] + 5000000
}
Expand Down

0 comments on commit b61c48e

Please sign in to comment.