From b2cd7928089f33d434c89bf6ad59c2ba9a1c79d9 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Sat, 8 Jun 2024 00:23:23 +0200 Subject: [PATCH] fixed --- lollms_webui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lollms_webui.py b/lollms_webui.py index d5f9bc8c..a551f31f 100644 --- a/lollms_webui.py +++ b/lollms_webui.py @@ -287,7 +287,8 @@ class LOLLMSWebUI(LOLLMSElfServer): def run_update_script(self, args=None): # deactivate trust store for github and pip package install - del os.environ['REQUESTS_CA_BUNDLE'] + if 'REQUESTS_CA_BUNDLE' in os.environ: + del os.environ['REQUESTS_CA_BUNDLE'] update_script = Path(__file__).parent/"update_script.py" # Convert Namespace object to a dictionary