Explorar o código

The object is not really iterable, just return it.

Ionel Cristian Mărieș %!s(int64=9) %!d(string=hai) anos
pai
achega
4f9e965873
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/canvas.py

+ 1 - 1
celery/canvas.py

@@ -93,7 +93,7 @@ def maybe_unroll_group(g):
         try:
             size = g.tasks.__length_hint__()
         except (AttributeError, TypeError):
-            pass
+            return g
         else:
             return list(g.tasks)[0] if size == 1 else g
     else: