Skip to content

The agent that grows with you

fix(profiles): narrow cron-merge error wrapper to the corrupt-store case

kshitijk4poor0bf0e03d33f2
diff --git a/hermes_cli/profile_distribution.py b/hermes_cli/profile_distribution.py
index c0d93966a62..7448482ab65 100644
--- a/hermes_cli/profile_distribution.py
+++ b/hermes_cli/profile_distribution.py
@@ -428,7 +428,7 @@ def _merge_cron_store(src: Path, dest: Path) -> None:
for job_id, incoming in shipped.items()
)
cron_jobs.save_jobs(merged)
- except (OSError, RuntimeError, ValueError) as exc:
+ except RuntimeError as exc: # load_jobs: corrupt/unreadable store; OSError/ValueError propagate as-is
raise DistributionError(f"Could not merge cron jobs into {dest}: {exc}") from exc