Fixed the SSL certificate issue while the CA file is not configured.

This commit is contained in:
Khushboo Vashi
2026-01-06 17:07:45 +05:30
parent d30fd5d67e
commit 71920c2903
+3 -1
View File
@@ -378,7 +378,9 @@ def upgrade_check():
if os.path.exists(config.CA_FILE):
context = ssl.create_default_context(cafile=config.CA_FILE)
else:
context = ssl.create_default_context(certifi.where())
context = ssl.create_default_context(
cafile=certifi.where()
)
response = urlopen(url, data=data, timeout=5,
context=context)