Skip to content

Commit 2dd267c

Browse files
committed
Fix host tls injection (I always forget direct dict access is not a safe operation in python)
1 parent 4a2b74e commit 2dd267c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

aider/main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import os
22

33
try:
4-
if not os.environ["CECLI_DEFAULT_TLS"] or os.environ["AIDER_CE_DEFAULT_TLS"]:
4+
if not os.getenv("CECLI_DEFAULT_TLS") and not os.getenv("AIDER_CE_DEFAULT_TLS"):
55
import truststore
66

77
truststore.inject_into_ssl()
8-
except Exception:
8+
except Exception as e:
9+
print(e)
910
pass
1011

1112
import asyncio

0 commit comments

Comments
 (0)