Python 3.4, Libcloud 1.0.0-pre1:

  File "apache-libcloud/libcloud/httplib_ssl.py", line 308, in connect
    raise exc
TypeError: exceptions must derive from BaseException

Patch to fix:

$ hg diff httplib_ssl.py
diff -r 4f3e9d5151b3 libcloud/httplib_ssl.py
--- a/libcloud/httplib_ssl.py Mon Mar 21 19:20:18 2016 +0000
+++ b/libcloud/httplib_ssl.py Tue Mar 22 15:50:05 2016 +0000
@@ -340,3 +341,6 @@
         new_exc = socket.error(*new_exc_args)
         new_exc.original_exc = exc
         return new_exc
+
+    # if you can't make it more friendly, return the original
+    return exc

Jay

Reply via email to