In wbem_request() method, 'socket.error' superclass of exception
class ' socket.sslerror' has already been caught.
Moved the except 'socket.sslerror' block up above 'socket.error'
so that if there is any error due to ssl it is caught correctly.
Closes-Bug: #
1487320
Change-Id: I1de1642e47fc7ba39e6666fca1aa6e8d0dde57d7
msg = (_("Bad Status line returned: %(arg)s.")
% {'arg': arg})
raise pywbem.cim_http.Error(msg)
- except socket.error as arg:
- msg = (_("Socket error:: %(arg)s.")
- % {'arg': arg})
- raise pywbem.cim_http.Error(msg)
except socket.sslerror as arg:
msg = (_("SSL error: %(arg)s.")
% {'arg': arg})
raise pywbem.cim_http.Error(msg)
+ except socket.error as arg:
+ msg = (_("Socket error: %(arg)s.")
+ % {'arg': arg})
+ raise pywbem.cim_http.Error(msg)
break