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: except ImportError:
click.echo('toml not installed, please use `pip3 install pinhook[toml]` to install', err=True) click.echo('toml not installed, please use `pip3 install pinhook[toml]` to install', err=True)
else: else:
to_toml = toml.loads(config.read()) to_toml = toml.load(config.name)
output = schema.loads(to_toml) output = schema.load(to_toml)
return output return output
@click.command() @click.command()