Skip to content

Commit

Permalink
update yaml load
Browse files Browse the repository at this point in the history
  • Loading branch information
i-am-sijia committed Sep 27, 2024
1 parent e64d952 commit 955a37c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion network_wrangler/projectcard.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def read_wrangler_card(w_card_filename: str) -> dict:
_yaml, _pycode = cardfile.read().split(delim)
WranglerLogger.debug("_yaml: {}\n_pycode: {}".format(_yaml, _pycode))

attribute_dictionary = yaml.load(_yaml)
attribute_dictionary = yaml.safe_load(_yaml)
attribute_dictionary["file"] = w_card_filename
attribute_dictionary["pycode"] = _pycode.lstrip("\n")

Expand Down

0 comments on commit 955a37c

Please sign in to comment.