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

Robust error processing on offer fetching #76

Open
yoannsculo opened this issue Nov 28, 2013 · 1 comment
Open

Robust error processing on offer fetching #76

yoannsculo opened this issue Nov 28, 2013 · 1 comment
Assignees
Milestone

Comments

@yoannsculo
Copy link
Owner

Jobcatch should not crash when a parsing error occurs.
Errors should be catched and formatted for bug tracking. Error messages should Ideally have a context (feed, url, offer, etc.) to ease developer's work.

@yoannsculo
Copy link
Owner Author

For instance, when I use --p2psync I can fetch old offers that cause a crash in jobcatcher.

Insert pages to jobboard
Analyse error page http://candidat.pole-emploi.fr/candidat/rechercheoffres/detail/010FSKQ(Not block content found)
Traceback (most recent call last):
  File "jobcatcher.py", line 295, in <module>
    executeall(configs, selecteduser)
  File "jobcatcher.py", line 41, in executeall
    insertpages(conf, selecteduser)
  File "jobcatcher.py", line 111, in insertpages
    insertpage(conf, jobboardname)
  File "jobcatcher.py", line 96, in insertpage
    page.load()
  File "/home/yoann/dev/apec/jc/page.py", line 59, in load
    webpage = utilities.openPage(filename)
  File "/home/yoann/dev/apec/utilities.py", line 129, in openPage
    PAGEVERSION
Exception: Mauvaise version pour ./www/dl/PoleEmploi/pages/984a0165d7d31c73ee1c6cebf86b071e/e6ad4b5f70d40a5ff65d0b9526b7db33.page=e6ad4b5f70d40a5ff65d0b9526b7db33 attendu 1.0

badele added a commit that referenced this issue Nov 29, 2013
@ghost ghost assigned badele Nov 30, 2013
badele added a commit that referenced this issue Nov 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants