From 7e194198234e0110a0f86e101261f7e2507f9f78 Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 28 Jan 2020 18:38:33 -0600 Subject: Fixed issue that caused GN2 SNPBrowser to sometime throw an error if there are no results --- wqflask/wqflask/snp_browser/snp_browser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wqflask/wqflask/snp_browser/snp_browser.py b/wqflask/wqflask/snp_browser/snp_browser.py index 7f0a0a31..73ab8798 100644 --- a/wqflask/wqflask/snp_browser/snp_browser.py +++ b/wqflask/wqflask/snp_browser/snp_browser.py @@ -174,7 +174,7 @@ class SnpBrowser(object): self.start_mb = result_snp[0][2] self.end_mb = result_snp[0][3] else: - return + return [] elif self.variant_type == "InDel": if self.gene_name[0] == "I": if self.species_id != 0: @@ -188,7 +188,7 @@ class SnpBrowser(object): self.start_mb = result_snp[0][2] self.end_mb = result_snp[0][3] else: - return + return [] if self.variant_type == "SNP": mouse_query = """ -- cgit v1.2.3