diff options
-rw-r--r-- | wqflask/base/trait.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py index 57cc8a9b..c275083d 100644 --- a/wqflask/base/trait.py +++ b/wqflask/base/trait.py @@ -378,7 +378,8 @@ def jsonable(trait, dataset=None): def retrieve_trait_info(trait, dataset, get_qtl_info=False): - assert dataset, "Dataset doesn't exist" + if not dataset: + raise ValueError("Dataset doesn't exist") resource_id = get_resource_id(dataset, trait.name) if dataset.type == 'Publish': |