From 6eb4325f3f9f4f44baa495baa2f33f9905f99362 Mon Sep 17 00:00:00 2001 From: Mallory Hancock Date: Thu, 29 Aug 2019 09:57:57 -0700 Subject: [PATCH] fix more typos --- pinhook/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pinhook/cli.py b/pinhook/cli.py index 643a19e..fdcf454 100644 --- a/pinhook/cli.py +++ b/pinhook/cli.py @@ -28,11 +28,11 @@ def read_conf(config, conf_format): conf_format = 'toml' else: click.echo('Could not detect file format, please supply using --format option', err=True) - if conf_type == 'json': + if conf_format == 'json': import json to_json = json.loads(config.read()) output = schema.load(to_json) - elif conf_type == 'yaml': + elif conf_format == 'yaml': try: import yaml except ImportError: @@ -40,7 +40,7 @@ def read_conf(config, conf_format): else: to_yaml = yaml.load(config.read()) output = schema.load(to_yaml) - elif conf_type == 'toml': + elif conf_format == 'toml': try: import toml except ImportError: