aboutsummaryrefslogtreecommitdiffstats
path: root/S3.py
diff options
context:
space:
mode:
Diffstat (limited to 'S3.py')
-rw-r--r--S3.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/S3.py b/S3.py
index b016dd5..0999f27 100644
--- a/S3.py
+++ b/S3.py
@@ -272,7 +272,12 @@ class AWSAuthConnection:
272 # add auth header 272 # add auth header
273 self._add_aws_auth_header(final_headers, method, bucket, key, query_args) 273 self._add_aws_auth_header(final_headers, method, bucket, key, query_args)
274 274
275 connection.request(method, path, data, final_headers) 275 try:
276 connection.request(method, path, data, final_headers)
277 except:
278 # Try try again
279 connection.close()
280 continue
276 281
277 try: 282 try:
278 resp = connection.getresponse() 283 resp = connection.getresponse()