This commit is contained in:
Adrian 2026-08-15 11:16:48 -05:00 committed by GitHub
commit 5fd18d0deb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -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.