Skip to content

TypeError thown pre-game if a team's pitcher is TBD #2

Description

@vbodo

I encountered this today for PIT vs. NYY. The probable pitcher for NYY is currently TBD pre-game.

It looks like the MLB stats API does not return a game.teams.<home/away>.probablePitcher in instances where the pitcher is to be determined. A null check may be needed to replace the probable pitcher name and win/loss record with "TBD" in instances where the API doesn't return this information.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions