From 27f17ffa52d68349ea978cea1f2acc5c55e52c19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Bissey?= Date: Mon, 12 Aug 2019 12:29:07 +1200 Subject: [PATCH] Add appropriate fallback if SAGE_PARI_CFG is missing --- src/sage_setup/docbuild/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sage_setup/docbuild/__init__.py b/src/sage_setup/docbuild/__init__.py index 0e07c713a24..79c7b7e2ddd 100644 --- a/src/sage_setup/docbuild/__init__.py +++ b/src/sage_setup/docbuild/__init__.py @@ -294,7 +294,7 @@ def _build_many(target, args): raise return ret -if (os.environ['SAGE_PARI_CFG'] !='') and (not (CYGWIN_VERSION and CYGWIN_VERSION[0] < 3)): +if (os.environ.get('SAGE_PARI_CFG', '') !='') and (not (CYGWIN_VERSION and CYGWIN_VERSION[0] < 3)): build_many = _build_many else: # Cygwin 64-bit < 3.0.0 has a bug with exception handling when exceptions