From b751482183cfb4798a5bc027dafc74dbf2bd7fe7 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Tue, 30 Oct 2012 15:36:39 -0400 Subject: [PATCH] Formatting --- python_apps/api_clients/api_client.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/python_apps/api_clients/api_client.py b/python_apps/api_clients/api_client.py index 34de2a07d..85bfb9600 100644 --- a/python_apps/api_clients/api_client.py +++ b/python_apps/api_clients/api_client.py @@ -129,14 +129,13 @@ class AirtimeApiClient(object): config_path=AirtimeApiClient.default_config ) def __init__(self, logger=None,config_path='/etc/airtime/api_client.cfg'): - if logger is None: - self.logger = logging - else: - self.logger = logger + if logger is None: self.logger = logging + else: self.logger = logger # loading config file try: self.config = ConfigObj(config_path) + self.services = RequestProvider(self.config) except Exception, e: self.logger.error('Error loading config file: %s', e) sys.exit(1)