summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--monitoring/datadog_monitor.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/monitoring/datadog_monitor.py b/monitoring/datadog_monitor.py
index 7ed1805c..9497120e 100644
--- a/monitoring/datadog_monitor.py
+++ b/monitoring/datadog_monitor.py
@@ -192,7 +192,9 @@ def main():
unmute_monitor(module)
def _fix_template_vars(message):
- return message.replace('[[', '{{').replace(']]', '}}')
+ if message:
+ return message.replace('[[', '{{').replace(']]', '}}')
+ return message
def _get_monitor(module):