Skip to content

Commit

Permalink
fix(ci): explicity set yaml Loader (#23126)
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro authored Feb 20, 2023
1 parent f851e99 commit 5482f78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/examples/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def load_configs_from_directory(

# removing "type" from the metadata allows us to import any exported model
# from the unzipped directory directly
metadata = yaml.load(contents.get(METADATA_FILE_NAME, "{}"), Loader=None)
metadata = yaml.load(contents.get(METADATA_FILE_NAME, "{}"), Loader=yaml.Loader)
if "type" in metadata:
del metadata["type"]
contents[METADATA_FILE_NAME] = yaml.dump(metadata)
Expand Down

0 comments on commit 5482f78

Please sign in to comment.