Skip to content

Refactor exception handling #15

@markdboyd

Description

@markdboyd

Some of the Lambda code is catching exceptions and then not re-raising those exceptions. When the exceptions are not re-raised, then the Lambda execution will show as successful, not an error.

And if the Lambda executions are not recognizing an error, then we cannot rely on Lambda Cloudwatch metrics for errors to monitor failures of these Lambdas effectively.

A lot of the try/except blocks seem to be there solely for the purpose of logging the exception. While logging an exception is helpful, it's preferable if the exception just causes the Lambda fail, which will result in the exception appearing in the Lambda logs by default.

To do

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions