Skip to content

Commit

Permalink
PyYAML safe_load
Browse files Browse the repository at this point in the history
  • Loading branch information
naoyak committed May 27, 2020
1 parent 48db4db commit b886f0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion knowledge_repo/repositories/gitrepository.py
Expand Up @@ -76,7 +76,7 @@ def init(self, config='git:///.knowledge_repo_config.yml', auto_create=False):
if config.startswith('git:///'):
assert config.endswith('.yml'), "In-repository configuration must be a YAML file."
try:
self.config.update(yaml.load(self.git_read(config.replace('git:///', ''))))
self.config.update(yaml.safe_load(self.git_read(config.replace('git:///', ''))))
except KeyError:
logger.warning("Repository missing configuration file: {}".format(config))
else:
Expand Down

0 comments on commit b886f0c

Please sign in to comment.