From eeb0116f280422f1653987835f875a60472b5933 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Thu, 1 Jun 2023 18:41:50 +0300 Subject: [PATCH] Skip exception when fetching SSL settings --- platformio/http.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platformio/http.py b/platformio/http.py index 48235f74..5f3021bf 100644 --- a/platformio/http.py +++ b/platformio/http.py @@ -50,7 +50,10 @@ class HTTPSession(requests.Session): self._x_base_url = kwargs.pop("x_base_url") if "x_base_url" in kwargs else None super().__init__(*args, **kwargs) self.headers.update({"User-Agent": app.get_user_agent()}) - self.verify = app.get_setting("enable_proxy_strict_ssl") + try: + self.verify = app.get_setting("enable_proxy_strict_ssl") + except PlatformioException: + self.verify = True def request( # pylint: disable=signature-differs,arguments-differ self, method, url, *args, **kwargs