catch errors if s3 file is not downloaded

  amazon-s3, amazon-web-services, boto, python, python-3.x

I download a file from S3 like this:

s3 = boto3.client('s3')

For now it always works. However, I wanted to add some sort of error handling. How can I check or get an error message if the download fails. How would I know that there’s something wrong?

Does boto3 offer any error handling functions?

I read this: Check if S3 downloading finish successfully but I am looking for alternatives as well.

Source: Python Questions