From a0cf1bec44190a81b4d084dab53b4b123d4f65fa Mon Sep 17 00:00:00 2001 From: Ralph Cowling Date: Thu, 24 Apr 2014 16:05:16 +0100 Subject: [PATCH] Better check for upload_filters - Stagecraft may pass this value through as `""` or `[]` or `None` and `if not upload_filters` works for all these cases. --- backdrop/core/data_set.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backdrop/core/data_set.py b/backdrop/core/data_set.py index 0d668c77..3deec2e9 100644 --- a/backdrop/core/data_set.py +++ b/backdrop/core/data_set.py @@ -90,7 +90,7 @@ def __new__(cls, name, data_group, data_type, raw_queries_allowed=False, if not data_set_is_valid(name): raise ValueError("DataSet name is not valid: '{}'".format(name)) - if upload_filters is None: + if not upload_filters: upload_filters = [ "backdrop.core.upload.filters.first_sheet_filter"]