fix failure of "Format Alert" button on Slack.

This commit is contained in:
toro_ponz 2022-10-02 00:45:01 +09:00
parent 2bfb834e92
commit 2355fa3a3c

View file

@ -57,7 +57,8 @@ class OpenAlertAppearanceDialogStep(
# This is a special case for amazon sns notifications in str format CHEKED
if (
AlertReceiveChannel.INTEGRATION_AMAZON_SNS is not None
hasattr(AlertReceiveChannel, "INTEGRATION_AMAZON_SNS")
and AlertReceiveChannel.INTEGRATION_AMAZON_SNS is not None
and alert_group.channel.integration == AlertReceiveChannel.INTEGRATION_AMAZON_SNS
and raw_request_data == "{}"
):