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

Getting game events for game with unplayed bottom of final inning causes IndexError #147

Open
caseyjohnsonwv opened this issue Sep 6, 2021 · 0 comments

Comments

@caseyjohnsonwv
Copy link

caseyjohnsonwv commented Sep 6, 2021

Version: 2.5.0

Steps to reproduce:

  1. Choose a game in which the bottom of the 9th inning was not played. For example, game_id 2021_04_03_tormlb_nyamlb_1, the Yankees v Blue Jays game from April 3rd, 2021.
  2. Run mlbgame.events.game_events(id) with the selected game_id value.

Result:

line 48, in game_events
  'bottom': __inning_info(x, 'bottom')
line 17, in __inning_info
  half = inning.findall(part)[0]
IndexError: list index out of range

Edit: this appears to be a duplicate of #137, still open from 2 years ago.

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