Skip to content

Commit

Permalink
Add raise from ClientError
Browse files Browse the repository at this point in the history
S3UploadFailedError currently replaces ClientError, but does not include a "from ClientError" clause to allow the original ClientError information to be accessed by other packages. Adding this clause will allow access to ClientError elements via `e.__cause__`
  • Loading branch information
glerb authored Nov 13, 2024
1 parent 91e8dc4 commit 112fef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boto3/s3/transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def upload_file(
"Failed to upload {} to {}: {}".format(
filename, '/'.join([bucket, key]), e
)
)
) from ClientError

def download_file(
self, bucket, key, filename, extra_args=None, callback=None
Expand Down

0 comments on commit 112fef4

Please sign in to comment.