Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not let request-building exceptions break crawling #96

Merged
merged 6 commits into from
Dec 13, 2024

Conversation

Gallaecio
Copy link
Contributor

@Gallaecio Gallaecio commented Dec 12, 2024

Created a context manager to capture and log exceptions, and used it in every spider when building a request object, so that any exception from request building does not prevent the rest of the callback code from running normally.

Built on top of #92 because the mockserver makes testing this change really easy (most of those tests failed upon adding those mailto: links, and work after the changes here).

@Gallaecio Gallaecio requested review from kmike and wRAR December 12, 2024 12:43
@Gallaecio Gallaecio merged commit ea3ee4b into zytedata:job-posting-product-list Dec 13, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants