Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

added the process_spider_exception method in middleware #9

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

stringertheory
Copy link

To address the issue in Issue #4 of a single exception in a Spider's parse method causing the spider to finish.

…ck and schedule next request when exception occurs
@ncadou
Copy link
Collaborator

ncadou commented Jul 13, 2013

Take a look at scrapy_webdriver.tests.test_request_queue. One way to do it would be to base the test on TestRequestQueue.test_priorization, have the mock raise an exception midway, and make sure subsequent requests do get called in addition to somehow test the handling of the exception itself.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants