Skip to content

Commit a313a41

Browse files
Switch to yaml safe_load
1 parent e4ee948 commit a313a41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chatops-anything.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ def _read_yaml_config(self, file: Path) -> List[Dict]:
358358
self.log.debug(f"Opening {file} to read as yaml config")
359359
with open(file, 'r') as stream:
360360
try:
361-
read_data = yaml.load(stream)
361+
read_data = yaml.safe_load(stream)
362362
except yaml.YAMLError as exc:
363363
self.log.error(f"{file} is not a valid yaml config file {str(exc)}")
364364
return list()

0 commit comments

Comments
 (0)