aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2021-04-22 18:26:01 +0000
committerzsloan2021-04-22 18:26:01 +0000
commit1a7bb988ee360b3ef48e22e25b419c375dccb9fa (patch)
tree4d37b70c86f0587cf667e31ee6c815b91b5e3003
parent315d7f13b254aa62e277805d7d9816b0c7042479 (diff)
downloadgenenetwork2-1a7bb988ee360b3ef48e22e25b419c375dccb9fa.tar.gz
Account for situations where the trait symbol is null for ProbeSet traits; previously it could throw an error
-rw-r--r--wqflask/wqflask/search_results.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/search_results.py b/wqflask/wqflask/search_results.py
index f23c0582..cb01a2af 100644
--- a/wqflask/wqflask/search_results.py
+++ b/wqflask/wqflask/search_results.py
@@ -119,7 +119,7 @@ class SearchResultPage(object):
trait_dict['dataset'] = this_trait.dataset.name
trait_dict['hmac'] = hmac.data_hmac('{}:{}'.format(this_trait.name, this_trait.dataset.name))
if this_trait.dataset.type == "ProbeSet":
- trait_dict['symbol'] = this_trait.symbol
+ trait_dict['symbol'] = this_trait.symbol if this_trait.symbol else "N/A"
trait_dict['description'] = "N/A"
if this_trait.description_display:
trait_dict['description'] = this_trait.description_display