mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-05 00:59:35 +00:00
[prtester.py] Fix: Only select actual "option" elements of "select" elements to prevent "TypeError: argument of type 'NoneType' is not iterable" (#3932)
This commit is contained in:
parent
0e3a79fd78
commit
6938f06125
3
.github/prtester.py
vendored
3
.github/prtester.py
vendored
@ -87,7 +87,8 @@ def testBridges(instance: Instance, bridge_cards: Iterable, with_upload: bool, w
|
|||||||
selectionvalue = ''
|
selectionvalue = ''
|
||||||
listname = listing.get('name')
|
listname = listing.get('name')
|
||||||
cleanlist = []
|
cleanlist = []
|
||||||
for option in listing.contents:
|
options = listing.find_all('option')
|
||||||
|
for option in options:
|
||||||
if 'optgroup' in option.name:
|
if 'optgroup' in option.name:
|
||||||
cleanlist.extend(option)
|
cleanlist.extend(option)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user