Skip to content

Commit

Permalink
Migration Fix: Dataset.meta key not guaranteed to exist (#2510)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Preston committed Feb 6, 2023
1 parent a7d9fc7 commit 91b8e1b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def upgrade():

new_ctl_dataset_id: str = "ctl_" + str(uuid.uuid4())
# Stashing extra text into the "meta" column so we can use this to downgrade if needed
appended_meta: Dict = dataset["meta"] or {}
appended_meta: Dict = dataset.get("meta", {})
appended_meta["fides_source"] = AUTO_MIGRATED_STRING

validated_dataset: Dict = Dataset(
Expand Down

0 comments on commit 91b8e1b

Please sign in to comment.