From c54027a0f92251c0f6d18d7277309208360c0b9c Mon Sep 17 00:00:00 2001 From: Bruno FERNANDO Date: Wed, 17 Nov 2021 11:44:36 +0100 Subject: [PATCH] fix(views/core): iteration over None type (#14305) * fix(views/core): iteration over None type * fix(views/core): apply suggestion --- superset/views/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/views/core.py b/superset/views/core.py index b8e47920428c6..38a791319bf3c 100755 --- a/superset/views/core.py +++ b/superset/views/core.py @@ -959,7 +959,7 @@ def save_or_overwrite_slice( slc = Slice(owners=[g.user] if g.user else []) form_data["adhoc_filters"] = self.remove_extra_filters( - form_data.get("adhoc_filters", []) + form_data.get("adhoc_filters") or [] ) assert slc