Commit 8f53e097 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Jérome Perrin

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

parent b2cf7538
......@@ -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