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

Cannot pull pbp data for Washington Football Team post 2018 #23

Open
peternavin opened this issue Jun 7, 2022 · 1 comment
Open

Cannot pull pbp data for Washington Football Team post 2018 #23

peternavin opened this issue Jun 7, 2022 · 1 comment
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@peternavin
Copy link

Since there is no mascot for the Washington Football Team post 2018, its produces the following key error:

KeyError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_17088/3575107685.py in
----> 1 nfl = sportsdataverse.nfl.NFLPlayProcess("401326425").espn_nfl_pbp()

~\Anaconda3\lib\site-packages\sportsdataverse\nfl\nfl_pbp.py in espn_nfl_pbp(self)
112 )
113 awayTeamMascot = str(
--> 114 pbp_txt["header"]["competitions"][0]["competitors"][1]["team"]["name"]
115 )
116 homeTeamName = str(

KeyError: 'name'

@armstjc armstjc added bug Something isn't working question Further information is requested labels Jun 29, 2022
@armstjc
Copy link
Collaborator

armstjc commented Jun 29, 2022

Can you provide the code that caused this error?

@armstjc armstjc self-assigned this Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants