fix yaml warning
parent
29d34320f1
commit
9e68e8e8a2
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue