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

Fix a bug returning None for empty values in xpath_search #671

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

MaxDall
Copy link
Collaborator

@MaxDall MaxDall commented Dec 30, 2024

Previously, when parsing LDs including "empty" entries (i.e., 'authors': []), xpath_search would return actual None values.
This PR fixes that behavior by filtering values on a boolean condition beforehand.

@MaxDall MaxDall requested a review from addie9800 December 30, 2024 11:11
@MaxDall MaxDall merged commit e8dbca7 into master Dec 30, 2024
4 checks passed
@MaxDall MaxDall deleted the fix-empty-values-in-xpath-search branch December 30, 2024 22:12
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