From ef9d9c01ca9fd7050858cc435bfcdbb4a55b38d7 Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Mon, 30 Nov 2015 14:48:44 -0500 Subject: [PATCH] Fix Py3k test failures. --- gcloud/streaming/http_wrapper.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcloud/streaming/http_wrapper.py b/gcloud/streaming/http_wrapper.py index 1d9540efcf03..eda580d355f5 100644 --- a/gcloud/streaming/http_wrapper.py +++ b/gcloud/streaming/http_wrapper.py @@ -411,10 +411,10 @@ def make_api_request(http, http_request, if retry_after is None: retry_after = calculate_wait_for_retry(retry, max_retry_wait) - _reset_http_connections(http) - logging.debug('Retrying request to url %s after exception %s', - http_request.url, exc) - time.sleep(retry_after) + _reset_http_connections(http) + logging.debug('Retrying request to url %s after exception %s', + http_request.url, type(exc).__name__) + time.sleep(retry_after) _HTTP_FACTORIES = []