Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add error handling for HTTP request in AddEstimatedDateTime
The method `AddEstimatedDateTimeOfPlayForEachPlay` in the `NhlGameService` class now includes error handling for the HTTP request to fetch the score report. A nullable string variable `scoreReport` is declared at the beginning of the method and initialized within a `try` block. A `catch` block has been added to handle exceptions, returning the `gameCenterPlayByPlay` object without further processing if an error occurs. This change improves the robustness of the method by preventing potential runtime errors due to failed HTTP requests.
- Loading branch information