qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject qpid-proton git commit: NO-JIRA: lack of ssl support should not prevent Container being used
Date Mon, 09 Mar 2015 14:36:20 GMT
Repository: qpid-proton
Updated Branches:
  refs/heads/master 0b4e9ba54 -> 97ca1441a


NO-JIRA: lack of ssl support should not prevent Container being used


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/97ca1441
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/97ca1441
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/97ca1441

Branch: refs/heads/master
Commit: 97ca1441ab656e54c666a4ac736836ada29900d2
Parents: 0b4e9ba
Author: Gordon Sim <gsim@redhat.com>
Authored: Mon Mar 9 14:37:35 2015 +0000
Committer: Gordon Sim <gsim@redhat.com>
Committed: Mon Mar 9 14:37:45 2015 +0000

----------------------------------------------------------------------
 proton-c/bindings/python/proton/reactor.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/97ca1441/proton-c/bindings/python/proton/reactor.py
----------------------------------------------------------------------
diff --git a/proton-c/bindings/python/proton/reactor.py b/proton-c/bindings/python/proton/reactor.py
index 0c59ff9..4fda15c 100644
--- a/proton-c/bindings/python/proton/reactor.py
+++ b/proton-c/bindings/python/proton/reactor.py
@@ -585,7 +585,10 @@ class Container(Reactor):
     def __init__(self, *handlers, **kwargs):
         super(Container, self).__init__(*handlers, **kwargs)
         if "impl" not in kwargs:
-            self.ssl = SSLConfig()
+            try:
+                self.ssl = SSLConfig()
+            except SSLUnavailable:
+                self.ssl = None
             self.global_handler = GlobalOverrides(kwargs.get('global_handler', self.global_handler))
             self.trigger = None
             self.container_id = str(generate_uuid())


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message