datacollect
datacollect copied to clipboard
Issue : Inconsistent Timeout Handling in `get_general_stats`
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.