diff --git a/lib/connection/requester.py b/lib/connection/requester.py index 146295193..6a1dff103 100755 --- a/lib/connection/requester.py +++ b/lib/connection/requester.py @@ -192,7 +192,7 @@ def request(self, path, proxy=None): error = "Too many redirects: {0}".format(url) except requests.exceptions.ProxyError: - error = "Error with the proxy: {0}".format(list(proxies.values())[0]) + error = "Error with the proxy: {0}".format(proxy) except requests.exceptions.ConnectionError: error = "Cannot connect to: {0}:{1}".format(self.host, self.port)