Skip to content

Commit

Permalink
options: add TODO for SafeLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Norberg committed Nov 2, 2020
1 parent 0091aff commit d3a950c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chartify/_core/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def _from_yaml(self, filename):
Overwrites any options that are specified in the yaml file.
"""
# Note: We assume that the contents of the config file are trusted
# TODO: Change this file format to be plain yaml so we can use SafeLoader
yaml_options = yaml.load(open(filename), Loader=yaml.UnsafeLoader)
self._options.update(yaml_options)

Expand Down

0 comments on commit d3a950c

Please sign in to comment.