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.

posta 5 mesi fa150 visualizzazioni
2 Risposte
0
Risposta accettata
profile picture
ESPERTO
con risposta 5 mesi fa
profile picture
ESPERTO
verificato 2 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande