Skip to content

Commit

Permalink
Config: Make running_in_binder actually return a bool when not True
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Sep 19, 2024
1 parent b19d997 commit a4f357c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spyder/config/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
)

Expand Down

0 comments on commit a4f357c

Please sign in to comment.