From 24537b476749f419a611f964748b20fc06f06c6c Mon Sep 17 00:00:00 2001 From: Richard Belleville Date: Tue, 18 Aug 2020 13:41:17 -0700 Subject: [PATCH] Fix breakage when variable unset --- tools/distrib/python/grpcio_tools/_parallel_compile_patch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/distrib/python/grpcio_tools/_parallel_compile_patch.py b/tools/distrib/python/grpcio_tools/_parallel_compile_patch.py index 204733046fe..b259061e917 100644 --- a/tools/distrib/python/grpcio_tools/_parallel_compile_patch.py +++ b/tools/distrib/python/grpcio_tools/_parallel_compile_patch.py @@ -22,7 +22,7 @@ import os try: BUILD_EXT_COMPILER_JOBS = int( - os.environ.get('GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS')) + os.environ['GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS']) except KeyError: import multiprocessing BUILD_EXT_COMPILER_JOBS = multiprocessing.cpu_count()