Explorar el Código

Fixed "no such variable result" error in the database backends, get_result()
method.

Ask Solem hace 16 años
padre
commit
1b98a82e6b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      celery/backends/database.py

+ 1 - 1
celery/backends/database.py

@@ -32,7 +32,7 @@ class Backend(BaseBackend):
         if meta.status == "FAILURE":
             return self.exception_to_python(meta.result)
         else:
-            return result
+            return meta.result
 
     def _get_task_meta_for(self, task_id):
         if task_id in self._cache: