mirror of
https://github.com/open-jarvis/OpenJarvis.git
synced 2026-07-30 10:52:15 +00:00
working doctor for cli
This commit is contained in:
@@ -222,7 +222,7 @@ def _check_optional_deps() -> List[CheckResult]:
|
||||
try:
|
||||
__import__(pkg)
|
||||
results.append(CheckResult(f"Optional: {label}", "ok", "Installed"))
|
||||
except ImportError:
|
||||
except Exception:
|
||||
results.append(
|
||||
CheckResult(f"Optional: {label}", "warn", "Not installed")
|
||||
)
|
||||
|
||||
@@ -180,7 +180,10 @@ class TelemetryStore:
|
||||
def _on_event(self, event: Event) -> None:
|
||||
rec = event.data.get("record")
|
||||
if isinstance(rec, TelemetryRecord):
|
||||
self.record(rec)
|
||||
try:
|
||||
self.record(rec)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
def close(self) -> None:
|
||||
"""Close the underlying SQLite connection."""
|
||||
|
||||
Reference in New Issue
Block a user