Skip to content

Commit

Permalink
fix(ci): explicity set yaml Loader (apache#23126)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5482f78)
  • Loading branch information
villebro authored and sadpandajoe committed Feb 28, 2023
1 parent 381d70f commit 0a14fa3
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 0a14fa3

Please sign in to comment.