aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2021-03-29 19:59:59 +0000
committerzsloan2021-03-29 19:59:59 +0000
commit19f91de0a78b1805b00b8345523c62c7fee31223 (patch)
treefc636b10d0fed045421669155a49fb339eeff491 /wqflask
parentc079bdd969b4e5f18815fad7c9939edab3522866 (diff)
downloadgenenetwork2-19f91de0a78b1805b00b8345523c62c7fee31223.tar.gz
Check if a trait in a collection is a properly structured string to avoid an error caused by an empty string be stored in a collection's trait list
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/collect.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wqflask/wqflask/collect.py b/wqflask/wqflask/collect.py
index e074a3d8..0291f2b8 100644
--- a/wqflask/wqflask/collect.py
+++ b/wqflask/wqflask/collect.py
@@ -191,6 +191,8 @@ def view_collection():
json_version = []
for atrait in traits:
+ if ':' not in atrait:
+ continue
name, dataset_name = atrait.split(':')
if dataset_name == "Temp":
group = name.split("_")[2]