Explorar o código

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

Ask Solem %!s(int64=15) %!d(string=hai) anos
pai
achega
e9cd6b1f98
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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