mirror of https://github.com/scrapy/scrapy.git
Merge 905abb95d5 into e28e56aa61
This commit is contained in:
commit
5fd18d0deb
|
|
@ -713,11 +713,15 @@ Errbacks
|
|||
========
|
||||
|
||||
The errback of a request is a function that will be called when an exception
|
||||
is raise while processing it.
|
||||
is raised while processing it.
|
||||
|
||||
It receives a :exc:`~twisted.python.failure.Failure` as first parameter and can
|
||||
be used to track connection establishment timeouts, DNS errors etc.
|
||||
|
||||
Scrapy sets the ``request`` attribute of that
|
||||
:exc:`~twisted.python.failure.Failure` object to the :class:`~scrapy.Request`
|
||||
object being processed.
|
||||
|
||||
If an errback raises an exception, Scrapy logs it and sends the
|
||||
:signal:`spider_error` signal, unless the exception is the one that the errback
|
||||
received, which Scrapy logs as a download error instead.
|
||||
|
|
|
|||
Loading…
Reference in New Issue