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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南