mirror of https://github.com/scrapy/scrapy.git
fix error reporting in test: we can fail in process_request too, so result should always be defined
This commit is contained in:
parent
4398d95a02
commit
8330776c21
|
|
@ -257,6 +257,7 @@ class RFC2616PolicyTest(DefaultStorageTest):
|
|||
policy_class = 'scrapy.extensions.httpcache.RFC2616Policy'
|
||||
|
||||
def _process_requestresponse(self, mw, request, response):
|
||||
result = None
|
||||
try:
|
||||
result = mw.process_request(request, self.spider)
|
||||
if result:
|
||||
|
|
|
|||
Loading…
Reference in New Issue