fix issues with toml loading
parent
6eb4325f3f
commit
05c83a50ec
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue