Explorar el Código

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

Ask Solem hace 15 años
padre
commit
e9cd6b1f98
Se han modificado 1 ficheros con 2 adiciones y 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