mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-06-06 21:55:57 -04:00
Fix #6965
This commit is contained in:
parent
1c7209a725
commit
3bc2ec2b11
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue