Handle OSError from subprocess when filesystem I/O fails #4

Merged
JMR-dev merged 1 commits from claude/fix-package-install-errors-A2rBu into main 2026-05-18 17:28:39 +00:00
JMR-dev commented 2026-05-18 17:28:16 +00:00 (Migrated from github.com)

When the system has disk I/O errors (errno 5), subprocess.run raises
OSError before a process can even start. The run() and shell() helpers
now catch OSError: if check=False the error is logged as a warning and
a returncode=1 CompletedProcess is returned so callers like
install_system_packages can continue; if check=True the error is
re-raised as before.

https://claude.ai/code/session_01Gsfw2QLhQiFVEvZQC5nVcU

When the system has disk I/O errors (errno 5), subprocess.run raises OSError before a process can even start. The run() and shell() helpers now catch OSError: if check=False the error is logged as a warning and a returncode=1 CompletedProcess is returned so callers like install_system_packages can continue; if check=True the error is re-raised as before. https://claude.ai/code/session_01Gsfw2QLhQiFVEvZQC5nVcU
Sign in to join this conversation.