don't check configuration tokens if the buildozer.spec has not been loaded.

This commit is contained in:
Mathieu Virbel 2013-01-08 17:38:18 +01:00
parent 041880cca3
commit 3e99508473

View file

@ -55,7 +55,11 @@ class Buildozer(object):
self.config = SafeConfigParser()
self.config.getlist = self._get_config_list
self.config.getdefault = self._get_config_default
self.config.read(filename)
if exists(filename):
self.config.read(filename)
self.check_configuration_tokens()
try:
self.log_level = int(self.config.getdefault(
@ -63,8 +67,6 @@ class Buildozer(object):
except:
pass
self.check_configuration_tokens()
self.targetname = None
self.target = None
if target: