From 27eb9c410dae80689258581cd0902873bbfc8157 Mon Sep 17 00:00:00 2001 From: shahargl Date: Mon, 18 Nov 2024 11:48:51 +0200 Subject: [PATCH] fix: minor fix in gcp monitoring --- .../gcpmonitoring_provider/gcpmonitoring_provider.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/keep/providers/gcpmonitoring_provider/gcpmonitoring_provider.py b/keep/providers/gcpmonitoring_provider/gcpmonitoring_provider.py index 55845f0e6..a78280944 100644 --- a/keep/providers/gcpmonitoring_provider/gcpmonitoring_provider.py +++ b/keep/providers/gcpmonitoring_provider/gcpmonitoring_provider.py @@ -194,7 +194,10 @@ def _format_alert( url = incident.pop("url", "") documentation = incident.pop("documentation", {}) if isinstance(documentation, dict): - name = documentation.get("subject", description) + name = ( + documentation.get("subject", description) + or "GCPMontirong Alert (No subject)" + ) else: name = "Test notification" incident_id = incident.get("incident_id", "")