Lars Kellogg-Stedman 35f5bb684b
correct UnboundLocalError in read_conf (#76)
When encountering an error, read_conf uses click.echo(...) to emit an
error message but then continue execution, causing the read_conf
method to throw an error of the form:

    UnboundLocalError: local variable 'output' referenced before assignment

By raising click.ClickException instead of calling click.echo, we
ensure that pinhook exits with an error message (and no traceback).
2020-11-12 08:10:31 -08:00
..
2017-09-27 12:27:24 -07:00
2019-09-23 12:23:41 -07:00