Skip to content

Commit

Permalink
Fix head_object bug with _upload_or_copy_file due to S3ClientProvider (
Browse files Browse the repository at this point in the history
  • Loading branch information
armandmcqueen authored Jan 17, 2020
1 parent d6e8acc commit 4989c4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/python/quilt3/data_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def _upload_or_copy_file(ctx, size, src_path, dest_bucket, dest_path):
params = dict(Bucket=dest_bucket, Key=dest_path)
s3_client = ctx.s3_client_provider.find_correct_client(S3Api.HEAD_OBJECT, dest_bucket, params)
resp = s3_client.head_object(**params)
except S3NoValidClientError:
except ClientError:
# Destination doesn't exist, so fall through to the normal upload.
pass
else:
Expand Down

0 comments on commit 4989c4f

Please # to comment.