@@ -114,13 +114,13 @@ single Python class that defines one or more of the following methods:
114
114
:param spider: the spider for which this response is intended
115
115
:type spider: :class: `~scrapy.spider.BaseSpider ` object
116
116
117
- .. method :: process_download_exception (request, exception, spider)
117
+ .. method :: process_exception (request, exception, spider)
118
118
119
- Scrapy calls :meth: `process_download_exception ` when a download handler
119
+ Scrapy calls :meth: `process_exception ` when a download handler
120
120
or a :meth: `process_request ` (from a downloader middleware) raises an
121
121
exception.
122
122
123
- :meth: `process_download_exception ` should return either ``None ``,
123
+ :meth: `process_exception ` should return either ``None ``,
124
124
:class: `~scrapy.http.Response ` or :class: `~scrapy.http.Request ` object.
125
125
126
126
If it returns ``None ``, Scrapy will continue processing this exception,
@@ -133,7 +133,7 @@ single Python class that defines one or more of the following methods:
133
133
If it returns a :class: `~scrapy.http.Request ` object, the returned request is
134
134
used to instruct an immediate redirection.
135
135
The original request won't finish until the redirected
136
- request is completed. This stops the :meth: `process_download_exception `
136
+ request is completed. This stops the :meth: `process_exception `
137
137
middleware the same as returning Response would do.
138
138
139
139
:param request: the request that generated the exception
0 commit comments