def timeout_error(url, timeout):
    """Raise a server error indicating a request timeout to the given URL."""
    msg = 'Request timed out: {} timeout: {}s'.format(url, timeout)
    log.warning(msg)
    return ServerError(msg)
def timeout_error ( url , timeout ) : msg = 'Request timed out: {} timeout: {}s' . format ( url , timeout ) log . warning ( msg ) return ServerError ( msg )
Raise a server error indicating a request timeout to the given URL.