From 19f91de0a78b1805b00b8345523c62c7fee31223 Mon Sep 17 00:00:00 2001 From: zsloan Date: Mon, 29 Mar 2021 19:59:59 +0000 Subject: 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 --- wqflask/wqflask/collect.py | 2 ++ 1 file changed, 2 insertions(+) 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] -- cgit v1.2.3