Skip to content

Commit

Permalink
Remove try/catch
Browse files Browse the repository at this point in the history
  • Loading branch information
kgabryje committed Nov 29, 2022
1 parent e99fce2 commit d99ad27
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,9 @@ def downgrade():
.all()
)
for dashboard in dashboards:
try:
json_meta = json.loads(dashboard.json_metadata)
json_meta.pop("filter_bar_orientation", None)
json_meta = json.loads(dashboard.json_metadata)
filter_bar_orientation = json_meta.pop("filter_bar_orientation", None)
if filter_bar_orientation:
dashboard.json_metadata = json.dumps(json_meta)
except:
pass
session.commit()
session.close()

0 comments on commit d99ad27

Please sign in to comment.