From cefc744fe3fb31cfb7c2384567d399cffb006399 Mon Sep 17 00:00:00 2001 From: mapledan Date: Mon, 22 Jan 2024 23:20:09 +0800 Subject: [PATCH] fix python_date_format maybe none --- superset/commands/dataset/update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/commands/dataset/update.py b/superset/commands/dataset/update.py index 300506fdfbf4b..458d17d3d8555 100644 --- a/superset/commands/dataset/update.py +++ b/superset/commands/dataset/update.py @@ -143,7 +143,7 @@ def _validate_columns( # validate python_date_format is ISO8601 format for col in columns: if not DatasetDAO.validate_column_pdf_is_iso8601( - col["python_date_format"] + col.get("python_date_format", None) ): exceptions.append(DatasetColumnsConstraintsValidationError())