From d2765c6983f1bc95ecf15902804fbb60af9a645c Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 21 Jul 2026 18:32:47 +0000 Subject: [PATCH] Fix the stale backend not-implemented message _require_implemented_backend still claimed "this build only implements backend='subinterpreter'" and told callers to use an external process/microVM launcher -- both outdated since the in-process 'process' backend landed. Derive the message from IMPLEMENTED_BACKENDS so it stays accurate as backends are added. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01PbbJc7Ntj159D9LNGevwC2 --- pyisolate/supervisor.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pyisolate/supervisor.py b/pyisolate/supervisor.py index 1a98906..3bf9fd8 100644 --- a/pyisolate/supervisor.py +++ b/pyisolate/supervisor.py @@ -57,10 +57,9 @@ def _normalize_backend(backend: str) -> BackendMode: def _require_implemented_backend(backend: BackendMode) -> None: if backend in IMPLEMENTED_BACKENDS: return + implemented = ", ".join(repr(b) for b in IMPLEMENTED_BACKENDS) raise NotImplementedError( - f"backend={backend!r} is an explicit isolation mode, but this build only " - "implements backend='subinterpreter'. Use an external process or microVM " - "launcher until the native backend is available." + f"backend={backend!r} is not implemented; this build implements {implemented}." )