Skip to content

Commit

Permalink
Small typo
Browse files Browse the repository at this point in the history
  • Loading branch information
glerb authored Nov 21, 2024
1 parent 07aab7d commit 4ebf398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/guide/error-handling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ Using Amazon Kinesis as an example service, you can use Boto3 to catch the excep
.. code-block:: python
except boto3.exceptions.S3UploadFailedError as error:
_clientError = error.__cause__.ClientError
_clientError = error.__cause__
if _clientError.response['Error']['Code'] == 'InvalidRequest':
logger.warn(f"There was an error when attempting to upload: {_clientError.response['Error']['Message']}")
Expand Down

0 comments on commit 4ebf398

Please sign in to comment.