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.

gefragt vor 5 Monaten150 Aufrufe
2 Antworten
0
Akzeptierte Antwort
profile picture
EXPERTE
beantwortet vor 5 Monaten
profile picture
EXPERTE
überprüft vor 2 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen