diff options
Diffstat (limited to 'S3.py')
| -rw-r--r-- | S3.py | 7 |
1 files changed, 6 insertions, 1 deletions
| @@ -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() |