From 68075277dc9d9a7afd42958c846528f7efa8d384 Mon Sep 17 00:00:00 2001 From: Dan LaMotte Date: Thu, 11 Apr 2013 13:01:18 -0500 Subject: [PATCH] Raise exception if attempting to use SSL with librabbitmq --- kombu/connection.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kombu/connection.py b/kombu/connection.py index 9a6146dc..b3d0c43d 100644 --- a/kombu/connection.py +++ b/kombu/connection.py @@ -233,6 +233,9 @@ class Connection(object): self.transport_cls = transport self.heartbeat = heartbeat and float(heartbeat) + if ssl and transport == 'librabbitmq': + raise Exception('SSL not supported for "librabbitmq" transport') + def _debug(self, msg, *args, **kwargs): fmt = '[Kombu connection:0x%(id)x] %(msg)s' if self._logger: # pragma: no cover