panzarino / mlbgame

A Python API to retrieve and read MLB GameDay data
http://panz.io/mlbgame/
MIT License
529 stars 112 forks source link

Probable Pitchers #141

Open danielkmetz opened 3 years ago

danielkmetz commented 3 years ago

For the past few days I've been able to pull the probable pitchers for the day's games up until the first game starts since the game that started will no longer have the attribute "probable pitchers". Makes sense. However, today (4/10/21) prior to the first game starting, my code threw the 'GameScoreboard object has no attribute 'p_pitcher_away' error. Why would it be throwing this error before games have started?

marketsbymark commented 3 years ago

Wasn't there a game that day that had a late non-named starter - in a bullpen session by chance? and the name wasn't matched. Going to check the tape on this one after finishing this message

marketsbymark commented 3 years ago

Not sure this would cause it, but the first game of the day but was postponed, Pitchers showed up as TBD : https://www.mlb.com/scores/2021-04-10

danielkmetz commented 3 years ago

If it was listed as to TBD that shouldn't be an issue when pulling the probables since it will just show up as "-". Regardless, I was able to find a work around.