mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-05 08:07:05 +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. |
||
|---|---|---|
| .. | ||
| migrations | ||
| __init__.py | ||
| _logging.py | ||
| prisma_toolchain.py | ||
| py.typed | ||
| replica_identity.py | ||
| schema.prisma | ||
| utils.py | ||