Skip to content

Commit

Permalink
fix(io:yaml): use safe_load to remove warning
Browse files Browse the repository at this point in the history
issue pycontw#5
  • Loading branch information
tai271828 committed Oct 18, 2020
1 parent 431eeb1 commit 34882c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion report_generator/io/yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
def read_yaml(input_yaml):
with open(input_yaml, "r") as stream:
try:
yaml_load = yaml.load(stream)
yaml_load = yaml.safe_load(stream)
return yaml_load
except yaml.YAMLError as e:
logger.critical(e)
Expand Down

0 comments on commit 34882c2

Please sign in to comment.