diff options
author | zsloan | 2019-10-09 11:27:06 -0500 |
---|---|---|
committer | zsloan | 2019-10-09 11:27:06 -0500 |
commit | 32effb3bc371828208c610fdf6f0e5296ea50560 (patch) | |
tree | b8ff6a31f06794040dc88d5f931af5ef04d4c23e | |
parent | bd13472a05b947b809a8199584d6a3cf5dfad703 (diff) | |
download | genenetwork2-32effb3bc371828208c610fdf6f0e5296ea50560.tar.gz |
Fixed issue where it threw an error for species other than mouse or human due to alias search
-rw-r--r-- | wqflask/wqflask/do_search.py | 2 |
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) |