rename tsstats.exceptions.InvalidConfig to InvalidConfiguration
because there's no seperation between config and cli-values
This commit is contained in:
parent
7186cd662b
commit
752e4f4c82
|
@ -4,7 +4,7 @@ import logging
|
||||||
from os.path import abspath, exists
|
from os.path import abspath, exists
|
||||||
|
|
||||||
from tsstats.config import parse_config
|
from tsstats.config import parse_config
|
||||||
from tsstats.exceptions import InvalidConfig
|
from tsstats.exceptions import InvalidConfiguration
|
||||||
from tsstats.log import parse_logs
|
from tsstats.log import parse_logs
|
||||||
from tsstats.template import render_template
|
from tsstats.template import render_template
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ def main(config=None, idmap=None, log=None, output=None, debug=False):
|
||||||
identmap = None
|
identmap = None
|
||||||
|
|
||||||
if not log or not output:
|
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)
|
clients = parse_logs(log, ident_map=identmap)
|
||||||
render_template(clients, output=abspath(output))
|
render_template(clients, output=abspath(output))
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
class InvalidConfig(Exception):
|
class InvalidConfiguration(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue