Widen the post-build idedata guard the same way

This commit is contained in:
J. Nick Koston
2026-08-20 19:03:14 -05:00
parent 5bdd387c2a
commit c9dbf79970
+5 -2
View File
@@ -93,8 +93,11 @@ def run_compile(config: ConfigType, verbose: bool) -> int:
_print_size_summary(build_dir)
try:
idedata = get_idedata()
except EsphomeError as err:
# The firmware already built; idedata is a bonus artifact here
except (EsphomeError, 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.
_LOGGER.warning("Could not generate idedata: %s", err)
else:
if idedata is None: