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

Standings pulls #138

Open
cfrontin opened this issue Jul 23, 2020 · 0 comments
Open

Standings pulls #138

cfrontin opened this issue Jul 23, 2020 · 0 comments

Comments

@cfrontin
Copy link

Hello!

Right now, if I run
$> mlbgame.standings(today)
I get back an error along the lines of:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/mlbgame/__init__.py", line 260, in standings
    data = mlbgame.info.standings(date)
  File "/usr/local/lib/python2.7/dist-packages/mlbgame/info.py", line 355, in standings
    parsed = json.loads(data.read().decode('utf-8'))
  File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

I suspect this is likely a 2020 being weird issue.

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