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

[prtester.py] Fix: Only select actual "option" elements of "select" elements #3932

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

User123698745
Copy link
Contributor

This PR will fix the "TypeError: argument of type 'NoneType' is not iterable" error in prtester.py (first noticed in #3930).

The script iterates thought each child element and expects them to all be an option element. Since #3924, every option now has an additional \n causing this error.

With this PR the script will only iterates thought actual option element.

…lements to prevent "TypeError: argument of type 'NoneType' is not iterable"
@dvikan
Copy link
Contributor

dvikan commented Jan 26, 2024

thanks for taking the time to fix this.

@dvikan dvikan merged commit 6938f06 into RSS-Bridge:master Jan 26, 2024
7 checks passed
@Bockiii
Copy link
Contributor

Bockiii commented Jan 27, 2024

awesome, thanks @User123698745 ! I was down with covid so I couldn't take a look at it but your fix looks less like a "patch it up" and more like it should have been designed that way from the beginning :)

Thanks!

@User123698745 User123698745 deleted the fix-prtester-select-option branch April 1, 2024 19:50
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.

3 participants