Skip to content

Commit

Permalink
Merge pull request #20 from FaustinCarter/bugfix-fix_yaml_loadr_warning
Browse files Browse the repository at this point in the history
Switch to using yaml.safe_load to avoid Deprecation warnings.
  • Loading branch information
mariusvniekerk authored Aug 21, 2020
2 parents 0b49dfe + be30c78 commit 992a0da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conda_mirror/conda_mirror.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def _parse_and_format_args():
if args.config:
logger.info("Loading config from %s", args.config)
with open(args.config, "r") as f:
config_dict = yaml.load(f)
config_dict = yaml.safe_load(f)
logger.info("config: %s", config_dict)

# use values from config file unless explicitly given on command line
Expand Down

0 comments on commit 992a0da

Please sign in to comment.