From 64e411eaa4837ce0d633873f36d99538e2d09b6b Mon Sep 17 00:00:00 2001 From: Ajmal Aboobacker <43377443+B3EF@users.noreply.github.com> Date: Thu, 28 Jan 2021 21:49:51 +0530 Subject: [PATCH] fixed ACE --- httprunner/loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httprunner/loader.py b/httprunner/loader.py index afaae6327..bad5dc71c 100644 --- a/httprunner/loader.py +++ b/httprunner/loader.py @@ -30,7 +30,7 @@ def _load_yaml_file(yaml_file: Text) -> Dict: """ with open(yaml_file, mode="rb") as stream: try: - yaml_content = yaml.load(stream) + yaml_content = yaml.safe_load(stream) except yaml.YAMLError as ex: err_msg = f"YAMLError:\nfile: {yaml_file}\nerror: {ex}" logger.error(err_msg)