Mirror the LookupError tolerance in the native post-build guard

This commit is contained in:
J. Nick Koston
2026-08-20 21:09:56 -05:00
parent 5b42eb3460
commit 6e56d19615
+3 -3
View File
@@ -95,11 +95,11 @@ def run_compile(config: ConfigType, verbose: bool) -> int:
_print_size_summary(build_dir)
try:
idedata = get_idedata()
except (EsphomeError, OSError, RuntimeError, ValueError) as err:
except (EsphomeError, LookupError, OSError, RuntimeError, ValueError) as err:
# The firmware already built; idedata is a bonus artifact here.
# Broad on purpose: a vanished compiler (OSError), a failed include
# probe (RuntimeError), or a truncated compile DB (ValueError) must
# not fail a successful build either.
# probe (RuntimeError), or a truncated/structurally odd compile DB
# (ValueError/LookupError) must not fail a successful build either.
_LOGGER.warning("Could not generate idedata: %s", err)
else:
if idedata is None: