瀏覽代碼

celery.task.control.inspect: Fixed replies if there is no destination.

Ask Solem 15 年之前
父節點
當前提交
e9cd6b1f98
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      celery/task/control.py

+ 2 - 1
celery/task/control.py

@@ -105,7 +105,8 @@ class inspect(object):
         if not reply:
             return
         by_node = flatten_reply(reply)
-        if not isinstance(self.destination, (list, tuple)):
+        if self.destination and \
+                not isinstance(self.destination, (list, tuple)):
             return by_node.get(self.destination)
         return by_node