Commit 1f51e4c6 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Arnaud Fontaine

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

parent 34e490d6
...@@ -136,7 +136,7 @@ class RESTAPIClientConnectorMixin(XMLObject): ...@@ -136,7 +136,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