Skip to content

Issue : Inconsistent Timeout Handling in get_general_stats #5

@PrinceSajjadHussain

Description

@PrinceSajjadHussain

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.

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