Fixed httplib_ssl socket exception handling.

Closes #714

Signed-off-by: Tomaz Muraus <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/b7fb13c5
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/b7fb13c5
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/b7fb13c5

Branch: refs/heads/trunk
Commit: b7fb13c5424e89ce4b4230a6d52585e4df19895a
Parents: f61f3cf
Author: Scott Crunkleton <[email protected]>
Authored: Thu Feb 25 17:43:56 2016 -0800
Committer: Tomaz Muraus <[email protected]>
Committed: Sat Feb 27 17:46:34 2016 +0100

----------------------------------------------------------------------
 libcloud/httplib_ssl.py | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/b7fb13c5/libcloud/httplib_ssl.py
----------------------------------------------------------------------
diff --git a/libcloud/httplib_ssl.py b/libcloud/httplib_ssl.py
index 2355368..b3e3101 100644
--- a/libcloud/httplib_ssl.py
+++ b/libcloud/httplib_ssl.py
@@ -340,3 +340,5 @@ def get_socket_error_exception(ssl_version, exc):
         new_exc = socket.error(*new_exc_args)
         new_exc.original_exc = exc
         return new_exc
+    else:
+        return exc

Reply via email to