build: Let the get-integer action return None

If used with the format-and-define action, this will result in an
undefined define.
This commit is contained in:
Sebastian Huber
2023-10-20 11:15:03 +02:00
parent 36b935f1c3
commit 8b6c64f9ec

View File

@@ -999,8 +999,8 @@ class OptionItem(Item):
cic.add_option(name)
except configparser.NoOptionError:
value = self.default_value(conf.env.ENABLE)
if value is None:
return value
if not value:
return None
try:
return eval(value)
except Exception as e: