Explorar el Código

Restore_group: Make sure correct backend is used

Ask Solem hace 12 años
padre
commit
994dc428ea
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      celery/result.py

+ 1 - 1
celery/result.py

@@ -683,7 +683,7 @@ class GroupResult(ResultSet):
     def restore(self, id, backend=None):
         """Restore previously saved group result."""
         return (
-            backend or self.app.backend if self.app else current_app.backend
+            backend or (self.app.backend if self.app else current_app.backend)
         ).restore_group(id)