Skip to content

Commit

Permalink
Merge pull request #43 from Schroeffu/fix_pyyaml_loader
Browse files Browse the repository at this point in the history
Add Loader=yaml.FullLoader, as pyyaml 5.1+ requires a loader definiti…
  • Loading branch information
Jean-Louis Fuchs authored Sep 5, 2022
2 parents ff54aca + c0193c0 commit 914c0aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyaptly/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ def main(argv=None):
lg.debug("Args: %s", vars(args))

with codecs.open(args.config, 'r', encoding="UTF-8") as cfgfile:
cfg = yaml.load(cfgfile)
cfg = yaml.load(cfgfile, Loader=yaml.FullLoader)
state.read()

# run function for selected subparser
Expand Down

0 comments on commit 914c0aa

Please sign in to comment.