Selaa lähdekoodia

Restore_group: Make sure correct backend is used

Ask Solem 11 vuotta sitten
vanhempi
commit
994dc428ea
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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)