diff options
author | zsloan | 2021-03-29 19:59:59 +0000 |
---|---|---|
committer | zsloan | 2021-03-29 19:59:59 +0000 |
commit | 19f91de0a78b1805b00b8345523c62c7fee31223 (patch) | |
tree | fc636b10d0fed045421669155a49fb339eeff491 /wqflask | |
parent | c079bdd969b4e5f18815fad7c9939edab3522866 (diff) | |
download | genenetwork2-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.py | 2 |
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] |