MCPcopy
hub / github.com/scrapy/scrapy / _errback

Method _errback

scrapy/utils/defer.py:253–260  ·  view source on GitHub ↗
(self, failure: Failure)

Source from the content-addressed store, hash-verified

251 self._call_anext()
252
253 def _errback(self, failure: Failure) -> None:
254 # This gets called on any exceptions in aiterator.__anext__().
255 # It handles StopAsyncIteration by stopping the iteration and reraises all others.
256 self.anext_deferred = None
257 failure.trap(StopAsyncIteration)
258 self.finished = True
259 for d in self.waiting_deferreds:
260 d.callback(None)
261
262 def _call_anext(self) -> None:
263 # This starts waiting for the next result from aiterator.

Callers

nothing calls this directly

Calls 1

callbackMethod · 0.80

Tested by

no test coverage detected