Formatting
This commit is contained in:
parent
59c55ae27f
commit
b751482183
|
@ -129,14 +129,13 @@ class AirtimeApiClient(object):
|
||||||
config_path=AirtimeApiClient.default_config )
|
config_path=AirtimeApiClient.default_config )
|
||||||
|
|
||||||
def __init__(self, logger=None,config_path='/etc/airtime/api_client.cfg'):
|
def __init__(self, logger=None,config_path='/etc/airtime/api_client.cfg'):
|
||||||
if logger is None:
|
if logger is None: self.logger = logging
|
||||||
self.logger = logging
|
else: self.logger = logger
|
||||||
else:
|
|
||||||
self.logger = logger
|
|
||||||
|
|
||||||
# loading config file
|
# loading config file
|
||||||
try:
|
try:
|
||||||
self.config = ConfigObj(config_path)
|
self.config = ConfigObj(config_path)
|
||||||
|
self.services = RequestProvider(self.config)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
self.logger.error('Error loading config file: %s', e)
|
self.logger.error('Error loading config file: %s', e)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Reference in New Issue