aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/data_set.py
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/base/data_set.py')
-rwxr-xr-xwqflask/base/data_set.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py
index 71efc9b2..17881e53 100755
--- a/wqflask/base/data_set.py
+++ b/wqflask/base/data_set.py
@@ -323,6 +323,11 @@ class PhenotypeDataSet(DataSet):
description = this_trait.pre_publication_description
this_trait.description_display = description
+ try:
+ this_trait.description_display.decode('ascii')
+ except Exception:
+ this_trait.description_display = this_trait.description_display.decode('utf-8')
+
if not this_trait.year.isdigit():
this_trait.pubmed_text = "N/A"