aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
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)