Browse Source

Cosmetics

Ask Solem 13 years ago
parent
commit
966ac1cff9
1 changed files with 1 additions and 2 deletions
  1. 1 2
      celery/bin/celeryctl.py

+ 1 - 2
celery/bin/celeryctl.py

@@ -122,8 +122,7 @@ class list_(Command):
         if what not in topics:
             raise ValueError("%r not in %r" % (what, topics.keys()))
         with self.app.broker_connection() as conn:
-            consumer = self.app.amqp.get_task_consumer(conn)
-            consumer.declare()
+            self.app.amqp.get_task_consumer(conn).declare()
             with conn.channel() as channel:
                 return topics[what](channel)
 list_ = command(list_, "list")