Skip to content

Fix _validate_pertain_list reading from wrong dict key#1344

Open
gaoflow wants to merge 1 commit into
scrapinghub:masterfrom
gaoflow:fix-pertain-validation-bug
Open

Fix _validate_pertain_list reading from wrong dict key#1344
gaoflow wants to merge 1 commit into
scrapinghub:masterfrom
gaoflow:fix-pertain-validation-bug

Conversation

@gaoflow

@gaoflow gaoflow commented Jun 24, 2026

Copy link
Copy Markdown

The _validate_pertain_list method was reading info["skip"] instead of info["pertain"], meaning the actual pertain locale data was never validated, and the skip list was effectively validated twice.

Fix:

  • Change info["skip"] to info["pertain"] in _validate_pertain_list

Tests:

  • Updated the test parameters to pass the invalid data via the pertain key (not skip) so the tests actually exercise the correct validation path

This was a straightforward copy-paste error in the validation method.

The _validate_pertain_list method was reading info['skip'] instead of
info['pertain'], meaning the actual 'pertain' locale data was never
validated, and the 'skip' list was validated twice. Fix the attribute
name to read from the correct dict key.
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.

1 participant