Merge branch 'esp8266-native-idedata-helpers' into esp8266-native-converter-hardening

This commit is contained in:
J. Nick Koston
2026-08-23 15:58:55 -05:00
+2 -1
View File
@@ -97,7 +97,8 @@ def _print_summary(size_json: Path, partitions_csv: Path | None) -> None:
# FileNotFoundError lands in the OSError arm with the path in its text.
try:
data = json.loads(size_json.read_text(encoding="utf-8"))
except (OSError, json.JSONDecodeError) as e:
except (OSError, ValueError) as e:
# ValueError covers JSONDecodeError and a non-UTF-8 (truncated) file
_LOGGER.warning("Skipping size summary: %s", e)
return
if not isinstance(data, dict):