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

Unexpected behavior with bad boxscore index for ncaab.boxscore.Boxscore #17

Open
bveber opened this issue Nov 26, 2022 · 0 comments
Open

Comments

@bveber
Copy link
Owner

bveber commented Nov 26, 2022

`>>> b = Boxscore('2022-11-03-00-cleveland-state')
_rate_limit_pq: https://www.sports-reference.com/cbb/boxscores/2022-11-03-00-cleveland-state.html

b
Traceback (most recent call last):
File "", line 1, in
File "/Users/bveber/pysports-stats/sports/ncaab/boxscore.py", line 238, in repr
return self.str()
File "/Users/bveber/pysports-stats/sports/ncaab/boxscore.py", line 231, in str
return (f'Boxscore for {self._away_name.text()} at '
AttributeError: 'NoneType' object has no attribute 'text'`

A boxscore object is being created even if the url is invalid

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

1 participant