Skip to content

Commit

Permalink
fix: handle null params in apache#18936 migration
Browse files Browse the repository at this point in the history
  • Loading branch information
serenajiang committed Mar 31, 2022
1 parent 85e330e commit 7c02a57
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 7c02a57

Please sign in to comment.