refactor(errors): replace silent exception handling in core packages

This commit is contained in:
somew1nd committed 2026-09-01 15:54:49 -07:00
1 parent 584bb2d09c
commit 47e7cb6620
21 files changed
+132 -58

No files matched your search

+6 -2
View File
@@ -194,8 +194,12 @@ class ReadinessEngine:
if adb_result and adb_result.metadata.get("active_device"):
try:
active_device = DeviceInfo(**adb_result.metadata["active_device"])
except Exception:
pass
except (TypeError, ValueError) as exc:
# Includes pydantic ValidationError (a ValueError subclass).
logger.warning(
f"Malformed active_device metadata from ADB probe; readiness"
f" report will omit the active device: {exc}"
)
return SystemReadinessReport(
overall_ready=overall_ready,