fix issues with toml loading

pull/74/head
Mallory Hancock 2019-08-29 10:13:59 -07:00
parent 6eb4325f3f
commit 05c83a50ec
1 changed files with 2 additions and 2 deletions

View File

@ -46,8 +46,8 @@ def read_conf(config, conf_format):
except ImportError:
click.echo('toml not installed, please use `pip3 install pinhook[toml]` to install', err=True)
else:
to_toml = toml.loads(config.read())
output = schema.loads(to_toml)
to_toml = toml.load(config.name)
output = schema.load(to_toml)
return output
@click.command()