debug in config file could be 'false'w

This commit is contained in:
Emmanuel Garette 2020-04-09 08:31:54 +02:00
parent 4708a16bdf
commit 932fbc18e2
1 changed files with 2 additions and 2 deletions

View File

@ -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)