diff --git a/jupyter_server/services/kernels/kernelmanager.py b/jupyter_server/services/kernels/kernelmanager.py index efeebf3c61..d1321ddba4 100644 --- a/jupyter_server/services/kernels/kernelmanager.py +++ b/jupyter_server/services/kernels/kernelmanager.py @@ -246,7 +246,7 @@ async def _async_start_kernel( # type:ignore[override] self.log.debug( "Kernel args (excluding env): %r", {k: v for k, v in kwargs.items() if k != "env"} ) - env = kwargs.get("env", None) + env = kwargs.get("env", None) # type:ignore[unreachable] if env and isinstance(env, dict): self.log.debug("Kernel argument 'env' passed with: %r", list(env.keys()))