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

get_team_info() no longer works for counterstrike/dota teams. #7

Open
Kushtrim-88 opened this issue May 25, 2020 · 1 comment
Open

Comments

@Kushtrim-88
Copy link

Kushtrim-88 commented May 25, 2020

The default usage of the method :

team_details = counterstrike_obj.get_team_info('Team Liquid',True)

throws out this error:

Traceback (most recent call last):
File "teams.py", line 5, in
team_details = counterstrike_obj.get_team_info('Team Liquid',True)
File "C:\Users\WDAGUtilityAccount\AppData\Local\Programs\Python\Python38-32\lib\site-packages\liquipediapy\counterstrike.py", line 104, in get_team_info
team['team_roster'] = team_object.get_team_roster(soup)
File "C:\Users\WDAGUtilityAccount\AppData\Local\Programs\Python\Python38-32\lib\site-packages\liquipediapy\counterstrike_modules\team.py", line 65, in get_team_roster
team_roster = roster_cards[0]
IndexError: list index out of range

Same thing seems to happen with DOTA 2 teams,

Error:

Traceback (most recent call last):
File "teams.py", line 5, in
team_details = dota_obj.get_team_info('Hippomaniacs',True)
File "C:\Users\WDAGUtilityAccount\AppData\Local\Programs\Python\Python38-32\lib\site-packages\liquipediapy\dota.py", line 91, in get_team_info
team['results'] = team_object.get_team_achivements(soup)
File "C:\Users\WDAGUtilityAccount\AppData\Local\Programs\Python\Python38-32\lib\site-packages\liquipediapy\dota_modules\team.py", line 108, in get_team_achivements
indexes = rows[0]
IndexError: list index out of range

@Kushtrim-88 Kushtrim-88 changed the title get_team_info() no longer works for counterstrike teams. get_team_info() no longer works for counterstrike/dota teams. May 25, 2020
@est0nian
Copy link
Contributor

This fixed in #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

No branches or pull requests

2 participants