Updated for exception tree error (requests.exceptions.ConnectionError)