Coding exception handling with boto in python

0

I've been coding an application in python for my own use to upload backups of my backup software's output to AWS. I have it working pretty well, but there's more to do on it. Anyway, how do I know what exceptions to catch for various services? I know about listing exceptions by client here (https://stackoverflow.com/questions/33068055/how-to-handle-errors-with-boto3), but that doesn't include the boto and botocore exceptions. How do I know which exceptions to catch? I know some should not be caught because they are retried by an entry in the credentials, but I don't see a way to know more about other such rules. Is there a class I can take that will cover this? I searched Udemy a little and I didn't see anything there that covered exceptions. I picked S3 for the tag, which is wrong, but I don't see anything that matches this question. Please correct it.

asked 5 months ago144 views
2 Answers
0
Accepted Answer
profile picture
EXPERT
answered 5 months ago
profile picture
EXPERT
reviewed a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions