Skip to content

Commit

Permalink
fix: ensure json is not None (#24280)
Browse files Browse the repository at this point in the history
  • Loading branch information
eschutho committed Jun 3, 2023
1 parent c5ea40f commit 40fffc3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def upgrade():
#
needs_upgrade = True
try:
json_metadata = json.loads(dashboard.json_metadata)
json_metadata = json.loads(dashboard.json_metadata or "{}")
new_chart_configuration = {}
for config in json_metadata.get("chart_configuration", {}).values():
chart_id = int(config.get("id", 0))
Expand Down

0 comments on commit 40fffc3

Please sign in to comment.