def get_timeout(self):
timeout_str = os.environ.get(REQUEST_TIMEOUT_ENV_VAR)<EOL>if timeout_str:<EOL><INDENT>try:<EOL><INDENT>return float(timeout_str)<EOL><DEDENT>except:<EOL><INDENT>self._log.error('<STR_LIT>'<EOL>'<STR_LIT>' %<EOL>timeout_str)<EOL><DEDENT><DEDENT>return None<EOL>
Checks if any timeout for the requests to DigitalOcean is required.
To set a timeout, use the REQUEST_TIMEOUT_ENV_VAR environment
variable.