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.

已提问 5 个月前150 查看次数
2 回答
0
已接受的回答
profile picture
专家
已回答 5 个月前
profile picture
专家
已审核 2 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则