datacollect icon indicating copy to clipboard operation
datacollect copied to clipboard

Issue : Inconsistent Timeout Handling in `get_general_stats`

Open PrinceSajjadHussain opened this issue 7 months ago • 0 comments

The get_general_stats function fetches data from two URLs. The first URL, https://www.dreamteamfc.com/statistics/players/ALL/, has a timeout implemented using a try...except block. However, the second URL, https://www.dreamteamfc.com/statistics/injuries-and-cards/ALL/, lacks this timeout implementation. This inconsistency could lead to the script hanging indefinitely if the second URL becomes unresponsive. Adding the try...except block around the second request would improve the robustness of the function.

PrinceSajjadHussain avatar Jun 21 '25 16:06 PrinceSajjadHussain