aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2020-01-28 18:38:33 -0600
committerzsloan2020-01-28 18:38:33 -0600
commit7e194198234e0110a0f86e101261f7e2507f9f78 (patch)
tree46b144ad4ce31013137603dc501b950487cab079
parent81afc6fd60d2b267c9041835a93088f7a5e4c3c4 (diff)
downloadgenenetwork2-7e194198234e0110a0f86e101261f7e2507f9f78.tar.gz
Fixed issue that caused GN2 SNPBrowser to sometime throw an error if there are no results
-rw-r--r--wqflask/wqflask/snp_browser/snp_browser.py4
1 files 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 = """