mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
heal_incomplete_nodeenv_cache() stats a $HOME-derived path with a bare Path.is_dir(). pathlib only swallows ENOENT-shaped errnos, so a cache directory the process cannot search raises PermissionError instead of answering False. Images bake that cache under the build user's home, whose mode is 0700, so a container started under any other uid dies there before the Prisma CLI is ever invoked, and the migration never runs. Tolerate OSError while inspecting the cache, matching the guard nodeenv_cache_dir() already carries, so an unreachable cache means there is nothing to heal rather than a crash. This restores the never-raises contract ensure_prisma_toolchain() documents. |
||
|---|---|---|
| .. | ||
| actions | ||
| codeql | ||
| ISSUE_TEMPLATE | ||
| observatory | ||
| screenshots | ||
| scripts | ||
| workflows | ||
| CODEOWNERS | ||
| dependabot.yaml | ||
| deploy-on-aws.png | ||
| deploy-on-gcp.png | ||
| deploy-to-aws.png | ||
| FUNDING.yml | ||
| pull_request_template.md | ||
| template.yaml | ||