Browse Source

Be compatible with carrot 0.5.0 by also defining the exchange_type on the
Publisher.

Ask Solem 16 years ago
parent
commit
fae8cf1fec
1 changed files with 1 additions and 0 deletions
  1. 1 0
      celery/messaging.py

+ 1 - 0
celery/messaging.py

@@ -16,6 +16,7 @@ except ImportError:
 class TaskPublisher(Publisher):
     """The AMQP Task Publisher class."""
     exchange = conf.AMQP_EXCHANGE
+    exchange_type = conf.AMQP_EXCHANGE_TYPE
     routing_key = conf.AMQP_PUBLISHER_ROUTING_KEY
     encoder = pickle.dumps