From 752e4f4c821c07ab5f647f4801332c206cb84920 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Wed, 25 May 2016 20:14:59 +0200 Subject: [PATCH] rename tsstats.exceptions.InvalidConfig to InvalidConfiguration because there's no seperation between config and cli-values --- tsstats/__main__.py | 4 ++-- tsstats/exceptions.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tsstats/__main__.py b/tsstats/__main__.py index 4ebf4fe..48a670b 100644 --- a/tsstats/__main__.py +++ b/tsstats/__main__.py @@ -4,7 +4,7 @@ import logging from os.path import abspath, exists from tsstats.config import parse_config -from tsstats.exceptions import InvalidConfig +from tsstats.exceptions import InvalidConfiguration from tsstats.log import parse_logs from tsstats.template import render_template @@ -60,7 +60,7 @@ def main(config=None, idmap=None, log=None, output=None, debug=False): identmap = None if not log or not output: - raise InvalidConfig('log or output missing') + raise InvalidConfiguration('log or output missing') clients = parse_logs(log, ident_map=identmap) render_template(clients, output=abspath(output)) diff --git a/tsstats/exceptions.py b/tsstats/exceptions.py index f9debbb..553c9ab 100644 --- a/tsstats/exceptions.py +++ b/tsstats/exceptions.py @@ -1,4 +1,4 @@ -class InvalidConfig(Exception): +class InvalidConfiguration(Exception): pass