Open mrsymlove opened 1 month ago
Hello, thanks for the PR. The change looks ok to me. Once you add a unit test for the change we can get it merged in. Also the changelog needs to be updated with a link to this PR, similar to the other changelog entries.
Description
This PR addresses a bug related to the handling of KeyError when formatting custom messages in the OpsGenieAlerter class. The change ensures that the alert message does not cause a failure if a key is missing by providing a default fallback message.
Bug Details
opsgenie.py
ElastAlert2 Logs
Opsgenie Rule Snippet
Checklist
make test-docker
with my changes.Questions or Comments
Update of the documentation is not needed since it is only a bugfix.