Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[fix] searx.network: fix string concatenation of proxy error message

Aadniz8851f4d6b1f1
diff --git a/searx/network/client.py b/searx/network/client.py
index c7c07c385..024eb2567 100644
--- a/searx/network/client.py
+++ b/searx/network/client.py
@@ -106,9 +106,9 @@ class AsyncProxyTransportFixed(AsyncProxyTransport):
except ProxyConnectionError as e:
raise httpx.ProxyError("ProxyConnectionError: " + str(e.strerror), request=request) from e
except ProxyTimeoutError as e:
- raise httpx.ProxyError("ProxyTimeoutError: " + e.args[0], request=request) from e
+ raise httpx.ProxyError("ProxyTimeoutError: " + str(e.args[0]), request=request) from e
except ProxyError as e:
- raise httpx.ProxyError("ProxyError: " + e.args[0], request=request) from e
+ raise httpx.ProxyError("ProxyError: " + str(e.args[0]), request=request) from e
def get_transport_for_socks_proxy(