fix yaml warning

pull/74/head
Mallory Hancock 2019-08-29 10:43:24 -07:00
parent 29d34320f1
commit 9e68e8e8a2
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ def read_conf(config, conf_format):
except ImportError: except ImportError:
click.echo('yaml not installed, please use `pip3 install pinhook[yaml]` to install', err=True) click.echo('yaml not installed, please use `pip3 install pinhook[yaml]` to install', err=True)
else: else:
to_yaml = yaml.load(config.read()) to_yaml = yaml.load(config.read(), Loader=yaml.FullLoader)
output = schema.load(to_yaml) output = schema.load(to_yaml)
elif conf_format == 'toml': elif conf_format == 'toml':
try: try: