mlbgame icon indicating copy to clipboard operation
mlbgame copied to clipboard

Standings pulls

Open cfrontin opened this issue 4 years ago • 0 comments

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.

cfrontin avatar Jul 23 '20 22:07 cfrontin