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

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

parent 3b94bae8
...@@ -135,7 +135,7 @@ class RESTAPIClientConnectorMixin(XMLObject): ...@@ -135,7 +135,7 @@ class RESTAPIClientConnectorMixin(XMLObject):
http_response = http_connection.getresponse() http_response = http_connection.getresponse()
request_stop_time = time.time() request_stop_time = time.time()
except ssl.SSLError as exc: 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)" %( LOG(__name__, ERROR, "Call to %s %s raised Timeout (%ss)" %(
method, path, round(time_left_before_timeout, 6) method, path, round(time_left_before_timeout, 6)
), error=True) ), 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