Skip to content

Commit

Permalink
yaml.safe_load
Browse files Browse the repository at this point in the history
No special things here using yaml.safe_load instead of load per
Bandit Best Practices.
  • Loading branch information
chalbersma committed Jan 2, 2019
1 parent 22af6a7 commit 4ffe42d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stingcell/saltcell.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

with open(args.config, "r") as config_file:
try:
configs = yaml.load(config_file)
configs = yaml.safe_load(config_file)
except yaml.YAMLError as parse_error:
print("Unable to parse file {} with error : \n {}".format(args.config, parse_error))
sys.exit(1)
Expand Down

0 comments on commit 4ffe42d

Please sign in to comment.