Commit 5f33ec72 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

py3: message attribute in exception was removed in Python 3.

parent 01c98656
Pipeline #33343 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 'The read operation timed out' == exc.message:
if "SSLError('The read operation timed out')" == repr(exc):
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