From 83207b37afe520776c187b217274fb9770e27e50 Mon Sep 17 00:00:00 2001 From: Serge Travin Date: Mon, 13 Dec 2021 20:01:36 +0100 Subject: [PATCH] fix(superset): handle dashboards without charts (#3713) (#3714) --- metadata-ingestion/src/datahub/ingestion/source/superset.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/metadata-ingestion/src/datahub/ingestion/source/superset.py b/metadata-ingestion/src/datahub/ingestion/source/superset.py index fa607d858322e..bc252edcb9dc2 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/superset.py +++ b/metadata-ingestion/src/datahub/ingestion/source/superset.py @@ -188,7 +188,9 @@ def construct_dashboard_from_api_data(self, dashboard_data): chart_urns = [] raw_position_data = dashboard_data.get("position_json", "{}") - position_data = json.loads(raw_position_data) + position_data = ( + json.loads(raw_position_data) if raw_position_data is not None else {} + ) for key, value in position_data.items(): if not key.startswith("CHART-"): continue