1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-22 07:32:41 +00:00

Populate spider variable when using shell.inspect_response

This commit is contained in:
Eugenio Lacuesta 2017-07-03 11:28:04 -03:00
parent dd5ab6c5fe
commit 793b2376f8

View File

@ -164,7 +164,7 @@ class Shell(object):
def inspect_response(response, spider):
"""Open a shell to inspect the given response"""
Shell(spider.crawler).start(response=response)
Shell(spider.crawler).start(response=response, spider=spider)
def _request_deferred(request):