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

added the process_spider_exception method in middleware - #9

Open
stringertheory wants to merge 8 commits into
brandicted:masterfrom
stringertheory:exception-handling
Open

added the process_spider_exception method in middleware#9
stringertheory wants to merge 8 commits into
brandicted:masterfrom
stringertheory:exception-handling

Conversation

@stringertheory

Copy link
Copy Markdown

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

ncadou commented Jul 13, 2013

Copy link
Copy Markdown
Collaborator

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