livescore-cli icon indicating copy to clipboard operation
livescore-cli copied to clipboard

I'm getting: AttributeError: 'NoneType' object has no attribute 'find'

Open pstils opened this issue 1 year ago • 1 comments

File "/home/peter/livescore-cli/livescore.py", line 50, in main() File "/home/peter/livescore-cli/livescore.py", line 24, in main games = get_games(cname, event_type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/peter/livescore-cli/lib/lsweb.py", line 101, in get_games games = parse_games(soup) ^^^^^^^^^^^^^^^^^ File "/home/peter/livescore-cli/lib/lsweb.py", line 65, in parse_games sp = soup.find('div', attrs={'data-testid': 'match_rows-root'}).find_all('div', recursive=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'find_all'

On Fedora 39.

pstils avatar Feb 05 '24 10:02 pstils

same error here (fedora 39)

dakkar96 avatar Apr 21 '24 14:04 dakkar96