This commit is contained in:
oobabooga 2025-05-08 10:34:09 -07:00
parent 1c7209a725
commit 3bc2ec2b11

View file

@ -126,7 +126,7 @@ def check_env():
sys.exit(1)
# Ensure this is a new environment and not the base environment
if os.environ["CONDA_DEFAULT_ENV"] == "base":
if os.environ.get("CONDA_DEFAULT_ENV", "") == "base":
print("Create an environment for this project and activate it. Exiting...")
sys.exit(1)