aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2019-10-09 11:27:06 -0500
committerzsloan2019-10-09 11:27:06 -0500
commit32effb3bc371828208c610fdf6f0e5296ea50560 (patch)
treeb8ff6a31f06794040dc88d5f931af5ef04d4c23e /wqflask
parentbd13472a05b947b809a8199584d6a3cf5dfad703 (diff)
downloadgenenetwork2-32effb3bc371828208c610fdf6f0e5296ea50560.tar.gz
Fixed issue where it threw an error for species other than mouse or human due to alias search
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/do_search.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wqflask/wqflask/do_search.py b/wqflask/wqflask/do_search.py
index c7f3fe41..be4742e9 100644
--- a/wqflask/wqflask/do_search.py
+++ b/wqflask/wqflask/do_search.py
@@ -887,6 +887,8 @@ def get_aliases(symbol, species):
symbol_string = symbol.capitalize()
elif species == "human":
symbol_string = symbol.upper()
+ else:
+ return []
filtered_aliases = []
response = requests.get("http://gn2.genenetwork.org/gn3/gene/aliases/" + symbol_string)