debug in config file could be 'false'w
This commit is contained in:
parent
4708a16bdf
commit
932fbc18e2
|
@ -26,10 +26,10 @@ version: {version}"""
|
|||
config = load(stream, Loader=SafeLoader)
|
||||
except YAMLError as err:
|
||||
raise Exception(_('Error when creating the config file {}').format(err))
|
||||
|
||||
|
||||
self.url = config['url']
|
||||
self.version = config['version']
|
||||
self.debug = 'debug' in config
|
||||
self.debug = config.get('debug', False)
|
||||
self.remote_url = 'http://{}/api/{}'.format(self.url, self.version)
|
||||
self.token_file = join(expanduser("~"), '.zephir-client.jwt.token')
|
||||
self.indent = config.get('indent', 2)
|
||||
|
|
Loading…
Reference in New Issue