Pattern: Missing request timeout
Issue: -
Checks for requests calls without a timeout specified.
Nearly all production code should use this parameter in nearly all requests, Failure to do so can cause your program to hang indefinitely.
Example of insecure code:
requests.get('https://gmail.com')
Example of secure code:
requests.get('https://gmail.com', timeout=5)