From 4ffe42dc84144e67d13736a4c55003f0135c5eb2 Mon Sep 17 00:00:00 2001 From: Chris Halbersma Date: Wed, 2 Jan 2019 10:11:43 -0800 Subject: [PATCH] yaml.safe_load No special things here using yaml.safe_load instead of load per Bandit Best Practices. --- stingcell/saltcell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stingcell/saltcell.py b/stingcell/saltcell.py index ce28630..25d5765 100755 --- a/stingcell/saltcell.py +++ b/stingcell/saltcell.py @@ -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)