Skip to content

Commit

Permalink
fix: handle null params in apache#18936 migration (apache#19474)
Browse files Browse the repository at this point in the history
  • Loading branch information
serenajiang authored and philipher29 committed Jun 9, 2022
1 parent 521ee6d commit ea5a417
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def upgrade():
session = db.Session(bind=bind)

for slc in session.query(Slice):
params = json.loads(slc.params)
params = json.loads(slc.params or "{}")
params.pop("time_range_endpoints", None)
slc.params = json.dumps(params)

Expand Down

0 comments on commit ea5a417

Please sign in to comment.