Skip to content

Check language of VOT document #1168

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

tillprochaska
Copy link
Collaborator

If an English translation isn’t yet available, requesting the English translation will return the French original. This checks whether the returned document actually is the English version. If not, it raises a NoWorkingUrlError exception, which will be treated in the same way as if the EP website had returned a 404 (i.e. the scraper will be retried later).

Fixes #1167

This is a draft PR for now, because I do need to verify whether the returned document actually includes the correct language code. See issue linked above for details.

If an English translation isn’t yet available, requesting the English translation will return the French original. This checks whether the returned document actually is the English version. If not, it raises a `NoWorkingUrlError` exception, which will be treated in the same way as if the EP website had returned a 404 (i.e. the scraper will be retried later).

Fixes #1167
@tillprochaska tillprochaska force-pushed the vot-list-check-language branch from bdf7738 to 62e2064 Compare June 9, 2025 15:08
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.

Check whether VOT lists are guaranteed to be English
1 participant