From a4f357cf6980f412d38c201b24a0bf198123a75b Mon Sep 17 00:00:00 2001 From: Carlos Cordoba Date: Thu, 19 Sep 2024 00:29:36 -0500 Subject: [PATCH] Config: Make running_in_binder actually return a bool when not True --- spyder/config/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spyder/config/base.py b/spyder/config/base.py index bd33f981654..19aa0fc2944 100644 --- a/spyder/config/base.py +++ b/spyder/config/base.py @@ -72,7 +72,7 @@ def running_in_ci_with_conda(): def running_in_binder(): """Return True if currently running in Binder.""" return ( - os.environ.get("BINDER_REPO_URL") + bool(os.environ.get("BINDER_REPO_URL")) and "spyder-ide/binder-environments" in os.environ["BINDER_REPO_URL"] )