Skip to content

Commit 32022ad

Browse files
committed
fix bandit checker
Signed-off-by: Aleksei Stepanov <penguinolog@gmail.com>
1 parent b5a1b97 commit 32022ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exec_helpers/exec_result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ def __deserialize(self, fmt: str) -> typing.Any:
490490
return json.loads(self.stdout_str, encoding="utf-8")
491491
if fmt == "yaml":
492492
if yaml.__with_libyaml__:
493-
return yaml.load(self.stdout_str, Loader=yaml.CSafeLoader)
493+
return yaml.load(self.stdout_str, Loader=yaml.CSafeLoader) # nosec # Safe
494494
return yaml.safe_load(self.stdout_str)
495495
except Exception as e:
496496
tmpl: str = f"{{self.cmd}} stdout is not valid {fmt}:\n{{stdout!r}}\n"

0 commit comments

Comments
 (0)