def check_connectivity():
    """
    Check for Internet connectivity (upon download error).
    """
    from urllib import request
    try:
        request.urlopen('http://www.google.com', timeout=5)
        return True
    except request.URLError:
        pass
