From 2d08e34e50df25aa8e430105046a9ce03b58a9ee Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Fri, 21 Jan 2011 10:27:41 +0100 Subject: [PATCH] virtual: must continue draining events even if no channels (yet) registered --- kombu/transport/virtual/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/kombu/transport/virtual/__init__.py b/kombu/transport/virtual/__init__.py index 84b5709c..b70e9e24 100644 --- a/kombu/transport/virtual/__init__.py +++ b/kombu/transport/virtual/__init__.py @@ -562,8 +562,6 @@ class Transport(base.Transport): channel.close() def drain_events(self, connection, timeout=None): - if not self.channels: - raise ValueError("No channels to drain events from.") loop = 0 time_start = time() while 1: