Skip to content

Commit

Permalink
fix: replace regular YAML loader with the safe one (#46)
Browse files Browse the repository at this point in the history
Co-authored-by: Pavel Tsialnou <pacveltsialnou@icloud.com>
  • Loading branch information
paveltsialnou and Pavel Tsialnou authored Feb 24, 2022
1 parent 71f39a3 commit b63601f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xenon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def parse_args():
setattr(args, attr, val.upper())
try:
with open(args.config, 'r') as f:
yml = yaml.load(f)
yml = yaml.safe_load(f)
except (getattr(__builtins__, 'FileNotFoundError', IOError),
yaml.YAMLError):
yml = {}
Expand Down

0 comments on commit b63601f

Please sign in to comment.