Skip to content

Commit

Permalink
fix(superset): handle dashboards without charts (#3713) (#3714)
Browse files Browse the repository at this point in the history
  • Loading branch information
grumbler authored Dec 13, 2021
1 parent e55cbd1 commit 83207b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion metadata-ingestion/src/datahub/ingestion/source/superset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 83207b3

Please sign in to comment.