mirror of
https://github.com/searxng/searxng.git
synced 2026-05-07 18:03:51 +02:00
[fix] searx.network: fix string concatenation of proxy error message
This commit is contained in:
@@ -106,9 +106,9 @@ class AsyncProxyTransportFixed(AsyncProxyTransport):
|
|||||||
except ProxyConnectionError as e:
|
except ProxyConnectionError as e:
|
||||||
raise httpx.ProxyError("ProxyConnectionError: " + str(e.strerror), request=request) from e
|
raise httpx.ProxyError("ProxyConnectionError: " + str(e.strerror), request=request) from e
|
||||||
except ProxyTimeoutError as 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:
|
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(
|
def get_transport_for_socks_proxy(
|
||||||
|
|||||||
Reference in New Issue
Block a user