-
Notifications
You must be signed in to change notification settings - Fork 189
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
NHL Boxscore error #763
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When I run the dataframe on an nhl boxscore I get the following error:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\myuser\Miniconda3\lib\site-packages\sportsipy\nhl\boxscore.py", line 723, in dataframe
'losing_abbr': self.losing_abbr,
File "C:\Users\myuser\Miniconda3\lib\site-packages\sportsipy\nhl\boxscore.py", line 840, in losing_abbr
return utils._parse_abbreviation(self._away_name)
File "C:\Users\myuser\Miniconda3\lib\site-packages\sportsipy\utils.py", line 151, in _parse_abbreviation
abbr = re.sub(r'/[0-9]+..htm.', '', uri_link('a').attr('href'))
File "C:\Users\myuser\Miniconda3\lib\re.py", line 210, in sub
return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or bytes-like object
To Reproduce
Sample code which causes an issue.
Expected behavior
A Dataframe should be populated
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: