Skip to content

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

Merged
dvikan merged 1 commit intoRSS-Bridge:masterfrom
User123698745:fix-prtester-select-option
Jan 26, 2024
Merged

[prtester.py] Fix: Only select actual "option" elements of "select" elements#3932
dvikan merged 1 commit intoRSS-Bridge:masterfrom
User123698745:fix-prtester-select-option

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
@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