Merge pull request #2812 from elacuesta/inspect_response_populate_spider

Populate spider variable when using shell.inspect_response
This commit is contained in:
Mikhail Korobov 2017-07-25 00:28:14 +05:00 committed by GitHub
commit 17bbd71433
1 changed files with 1 additions and 1 deletions

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):