datacollect
datacollect copied to clipboard
Issue : Inconsistent use of timeout in `requests.get`
The requests.get calls inside get_general_stats sometimes use the timeout parameter and sometimes don't. This inconsistency can lead to unpredictable behavior, where some requests might hang indefinitely while others are properly terminated. It's best to consistently use timeout in all requests.get calls for better reliability. The timeout value can be a class variable, and overridden in each function that uses requests.