From 05c83a50ecf5223c25f1c9d2cd8c9718d42d4ede Mon Sep 17 00:00:00 2001 From: Mallory Hancock Date: Thu, 29 Aug 2019 10:13:59 -0700 Subject: [PATCH] fix issues with toml loading --- pinhook/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pinhook/cli.py b/pinhook/cli.py index fdcf454..120bfc3 100644 --- a/pinhook/cli.py +++ b/pinhook/cli.py @@ -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()