fastled 1.2.48__py3-none-any.whl → 1.2.49__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
fastled/web_compile.py CHANGED
@@ -45,6 +45,7 @@ def _test_connection(host: str, use_ipv4: bool) -> ConnectionResult:
45
45
  # Function static cache
46
46
  host = _sanitize_host(host)
47
47
  transport = httpx.HTTPTransport(local_address="0.0.0.0") if use_ipv4 else None
48
+ result: ConnectionResult | None = None
48
49
  try:
49
50
  with httpx.Client(
50
51
  timeout=_TIMEOUT,
@@ -56,7 +57,7 @@ def _test_connection(host: str, use_ipv4: bool) -> ConnectionResult:
56
57
  result = ConnectionResult(host, test_response.status_code == 200, use_ipv4)
57
58
  except KeyboardInterrupt:
58
59
  _thread.interrupt_main()
59
-
60
+ result = ConnectionResult(host, False, use_ipv4)
60
61
  except TimeoutError:
61
62
  result = ConnectionResult(host, False, use_ipv4)
62
63
  except Exception: