From 34882c20bb64e4c58d3cd48c6003d8272db7dc0b Mon Sep 17 00:00:00 2001 From: "Taihsiang Ho (tai271828)" Date: Sun, 18 Oct 2020 02:48:23 +0200 Subject: [PATCH] fix(io:yaml): use safe_load to remove warning issue #5 --- report_generator/io/yaml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/report_generator/io/yaml.py b/report_generator/io/yaml.py index d4ffdcb..6d0af98 100644 --- a/report_generator/io/yaml.py +++ b/report_generator/io/yaml.py @@ -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)