Fix proxytranslate

This commit is contained in:
mac12m99
2021-07-20 20:40:49 +02:00
parent 8b051e49f2
commit 993ac5ab16
2 changed files with 14 additions and 16 deletions
+2 -2
View File
@@ -112,8 +112,8 @@ class CipherSuiteAdapter(host_header_ssl.HostHeaderSSLAdapter):
request.url = urlparse.urlunparse(parse)
try:
ret = super(CipherSuiteAdapter, self).send(request, **kwargs)
if 400 <= ret.status_code < 500:
raise Exception
# if 400 <= ret.status_code < 500:
# raise Exception
except (requests.exceptions.HTTPError, requests.exceptions.ConnectionError, requests.exceptions.SSLError) as e:
logger.info('Request for ' + domain + ' with ip ' + ip + ' failed')
logger.info(e)