Skip to content

Commit

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

Please sign in to comment.