A superclass exception (error) is being handled before
a sub class exception(SSLError) which is making the latter
exception clause unreachable. Corrected the order of these
exception clauses.
Trivial Fix
Change-Id: I82e6f4984b095f50cdd7ffccd9af60ce75d41f7f
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