From 32effb3bc371828208c610fdf6f0e5296ea50560 Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 9 Oct 2019 11:27:06 -0500 Subject: Fixed issue where it threw an error for species other than mouse or human due to alias search --- wqflask/wqflask/do_search.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit v1.2.3