don't check configuration tokens if the buildozer.spec has not been loaded.
This commit is contained in:
parent
041880cca3
commit
3e99508473
1 changed files with 5 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue