From 6e7922492ac1c5e731fc876491754f33e311cd17 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Mon, 9 May 2016 19:29:24 +0200 Subject: [PATCH] use py2-style ConfigParser-get-methods --- tsstats/config.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tsstats/config.py b/tsstats/config.py index 7dd9ad1..ebd2654 100644 --- a/tsstats/config.py +++ b/tsstats/config.py @@ -16,7 +16,6 @@ def parse_config(config_path): config.has_option('General', 'outputfile')): raise InvalidConfig - general = config['General'] - log_path = abspath(general['logfile']) - output_path = abspath(general['outputfile']) + log_path = abspath(config.get('General', 'logfile')) + output_path = abspath(config.get('General', 'outputfile')) return log_path, output_path