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

Exception is caught when calling scrape now; this should fix our CI Problems #130

Merged
merged 1 commit into from
Jan 20, 2021

Conversation

thebigG
Copy link
Collaborator

@thebigG thebigG commented Jan 20, 2021

Hello everyone,

hope you are all doing well.

Description

When calling scrape function on scrapers, exceptions are caught and an error message is logged. This should fix our CI problems; JobFunnel is not just going to crash if it fails on one of the scrapes because of a CAPTCHA or something like that.

Context of change

Please add options that are relevant and mark any boxes that apply.

  • Software (software that runs on the PC)
  • Library (library that runs on the PC)
  • Tool (tool that assists coding development)
  • Other

Type of change

Please mark any boxes that apply.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.
Provide instructions so we can reproduce.
Please also list any relevant details for your test configuration.

  • Ran pytest on JobFunnel

Checklist:

Please mark any boxes that have been completed.

  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.
  • Any dependent changes have been merged and published in downstream modules.

@thebigG
Copy link
Collaborator Author

thebigG commented Jan 20, 2021

It failed because of #123. Don't merge PR now. Will look at it and fix it.

Copy link
Owner

@PaulMcInnis PaulMcInnis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes a lot of sense - thanks for improving this behaviour :)

edit: keep us in the loop on 123 i guess, but we may need to create a separate pr for fixing that issue

@thebigG
Copy link
Collaborator Author

thebigG commented Jan 20, 2021

edit: keep us in the loop on 123 i guess, but we may need to create a separate pr for fixing that issue

👍. You're right; it will make things simpler. I'll fix #123 and submit another PR, hopefully sometime this week.

@thebigG thebigG merged commit e509ef4 into PaulMcInnis:master Jan 20, 2021
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