-
Notifications
You must be signed in to change notification settings - Fork 31
Create rule S7619:Catching ClientError Exceptions in boto3 calls #5155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
|
if error_code == 'NoSuchKey': | ||
return {"error":"File not found"} | ||
elif ...: | ||
... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
short question - do we need to keep this except body for the example? I thing it could be replaced just with ...
@@ -0,0 +1,25 @@ | |||
{ | |||
"title": "\"botocore.exceptions.ClientError\" must be explicitly catch and handled", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd name it in a way like:
boto3
calls exceptions must be explicitly catch and handled in the lambda handlers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a couple of minor coments, good job
You can preview this rule here (updated a few minutes after each push).
Review
A dedicated reviewer checked the rule description successfully for: