Parcourir la source

Attempt to fix tests on Travis

Ask Solem il y a 9 ans
Parent
commit
5b02571301
1 fichiers modifiés avec 4 ajouts et 3 suppressions
  1. 4 3
      celery/canvas.py

+ 4 - 3
celery/canvas.py

@@ -390,13 +390,14 @@ class chain(Signature):
         args = (tuple(args) + tuple(self.args)
         args = (tuple(args) + tuple(self.args)
                 if args and not self.immutable else self.args)
                 if args and not self.immutable else self.args)
 
 
-        try:
-            tasks, results = self._frozen
-        except (AttributeError, ValueError, TypeError):
+        if self._frozen:
+            tasks, result = self._frozen
+        else:
             tasks, results = self.prepare_steps(
             tasks, results = self.prepare_steps(
                 args, self.tasks, root_id, link_error, app,
                 args, self.tasks, root_id, link_error, app,
                 task_id, group_id, chord,
                 task_id, group_id, chord,
             )
             )
+
         if results:
         if results:
             # make sure we can do a link() and link_error() on a chain object.
             # make sure we can do a link() and link_error() on a chain object.
             if link:
             if link: