Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Update docs

Eugenio Lacuestadf75a0942e00
diff --git a/docs/topics/spider-middleware.rst b/docs/topics/spider-middleware.rst
index 0af26be73..dde1786af 100644
--- a/docs/topics/spider-middleware.rst
+++ b/docs/topics/spider-middleware.rst
@@ -112,9 +112,8 @@ following methods:
.. method:: process_spider_exception(response, exception, spider)
- This method is called when when a spider or :meth:`process_spider_input`/
- :meth:`process_spider_output` method (from other spider middleware)
- raises an exception.
+ This method is called when a spider or :meth:`process_spider_output`
+ method (from a previous spider middleware) raises an exception.
:meth:`process_spider_exception` should return either ``None`` or an
iterable of :class:`~scrapy.http.Request`, dict or
@@ -126,7 +125,7 @@ following methods:
exception reaches the engine (where it's logged and discarded).
If it returns an iterable the :meth:`process_spider_output` pipeline
- kicks in, starting with the last non-executed method, and no other
+ kicks in, starting from the next spider middleware, and no other
:meth:`process_spider_exception` will be called.
:param response: the response being processed when the exception was