mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-12-06 07:12:10 +01:00
Fix #6965
This commit is contained in:
parent
1c7209a725
commit
3bc2ec2b11
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue