Commit a7991cfa authored by Carlos Ramos Carreño's avatar Carlos Ramos Carreño

Fix erp5_web_service in Python 2

See merge request nexedi/erp5!1922
parents c5ac6eb9 6e16d7a6
Pipeline #34218 failed with stage
in 0 seconds
......@@ -135,7 +135,7 @@ class RESTAPIClientConnectorMixin(XMLObject):
http_response = http_connection.getresponse()
request_stop_time = time.time()
except ssl.SSLError as exc:
if "SSLError('The read operation timed out')" == repr(exc):
if 'The read operation timed out' == exc.args[0]:
LOG(__name__, ERROR, "Call to %s %s raised Timeout (%ss)" %(
method, path, round(time_left_before_timeout, 6)
), error=True)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment