-
Notifications
You must be signed in to change notification settings - Fork 112
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
mlbgame.injury() gives AttributeError #144
Comments
I looked at this briefly and think this has to do with MLB's lookup service being deprecated. Using the StatsAPI (which replaced the lookup service) might fix this issue. |
The StatsAPI? Where can I find this? |
I would just look up MLB StatsAPI. I believe you need to request access/make an account, but I don't know if they give it to anyone and everyone. It doesn't hurt to try to get access though. |
Thanks |
Traceback (most recent call last): File "<pyshell#31>", line 1, in <module> mlbgame.injury() File "C:\Users\ME\AppData\Local\Programs\Python\Python38-32\lib\site-packages\mlbgame\__init__.py", line 266, in injury data = mlbgame.info.injury() File "C:\Users\ME\AppData\Local\Programs\Python\Python38-32\lib\site-packages\mlbgame\info.py", line 408, in injury parsed = json.loads(data.read().decode('utf-8')) AttributeError: 'NoneType' object has no attribute 'read'
The text was updated successfully, but these errors were encountered: