panzarino/mlbgame

ValueError: Could not find a game with that id.

Open

#52 创建于 2018年1月17日

在 GitHub 查看
 (21 评论) (0 反应) (0 负责人)Python (509 star) (116 fork)batch import
bugenhancementhelp wanted

描述

Running the same code as before:

def team_games(year,month):
    month = mlbgame.games(year, month)
    games = mlbgame.combine_games(month)
    for game in games:
        print game.game_id
    return games


games = team_games(2016, 5)


and its breaking on random game ids when iterating through.

This one in particular breaks:

stats = mlbgame.team_stats('2016_05_16_bosmlb_kcamlb_1')
era = stats.home_pitching.era
print(era)

Status is also FINAL

贡献者指南