Browse Source

Result shouldnt call promise.on_error after all

Ask Solem 8 years ago
parent
commit
a87ef75884
1 changed files with 1 additions and 4 deletions
  1. 1 4
      celery/result.py

+ 1 - 4
celery/result.py

@@ -360,10 +360,7 @@ class AsyncResult(ResultBase):
             state = meta['status']
             if state in states.READY_STATES:
                 d = self._set_cache(self.backend.meta_from_decoded(meta))
-                if state in states.EXCEPTION_STATES:
-                    self.throw(self.result, propagate=False)
-                else:
-                    self.on_ready(self)
+                self.on_ready(self)
                 return d
         return meta