Browse Source

Restore_group: Make sure correct backend is used

Ask Solem 11 years ago
parent
commit
994dc428ea
1 changed files with 1 additions and 1 deletions
  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)