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/59efe4f6 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/59efe4f6 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/59efe4f6 Branch: refs/heads/0.9.x Commit: 59efe4f6b2ea597332a2191665c498dbf44b8bd8 Parents: 27851bb Author: Gordon Sim <[email protected]> Authored: Mon Mar 9 14:37:35 2015 +0000 Committer: Gordon Sim <[email protected]> Committed: Mon Mar 9 20:05:57 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/59efe4f6/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: [email protected] For additional commands, e-mail: [email protected]
