Skip to content

Commit b63601f

Browse files
paveltsialnouPavel Tsialnou
and
Pavel Tsialnou
authored
fix: replace regular YAML loader with the safe one (#46)
Co-authored-by: Pavel Tsialnou <[email protected]>
1 parent 71f39a3 commit b63601f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xenon/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def parse_args():
5555
setattr(args, attr, val.upper())
5656
try:
5757
with open(args.config, 'r') as f:
58-
yml = yaml.load(f)
58+
yml = yaml.safe_load(f)
5959
except (getattr(__builtins__, 'FileNotFoundError', IOError),
6060
yaml.YAMLError):
6161
yml = {}

0 commit comments

Comments
 (0)