aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/base/trait.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py
index 548ccc4c..c37a8325 100644
--- a/wqflask/base/trait.py
+++ b/wqflask/base/trait.py
@@ -538,8 +538,8 @@ def retrieve_trait_info(trait, dataset, get_qtl_info=False):
description_display = trait.symbol
if (len(description_display) > 1 and description_display != 'N/A' and
- len(target_string) > 1 and target_string != 'None'):
- description_display = description_display + '; ' + target_string.strip()
+ len(str(target_string)) > 1 and target_string != 'None'):
+ description_display = description_display + '; ' + str(target_string).strip()
# Save it for the jinja2 template
trait.description_display = description_display