From 2b0ca01cdbbe30b8b816f507b78c5c289bd23f98 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 9 Nov 2012 15:38:11 -0500 Subject: [PATCH] api: Distinguish Requests connection errors from server 500s. (imported from commit 1879ea4030c2441c049d9c68684b33a1d2444572) --- common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.py b/common.py index d925a27..c938622 100644 --- a/common.py +++ b/common.py @@ -36,7 +36,7 @@ class HumbugAPI(): if str(res.status_code).startswith('5') and self.retry_on_errors: if self.verbose: if not had_error_retry: - sys.stdout.write("connection error -- retrying.") + sys.stdout.write("connection error %s -- retrying." % (res.status_code,)) had_error_retry = True request["failures"] += 1 else: