From 9a395d42feb2425168c214f41886ffdb92e3e228 Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Mon, 13 Aug 2018 11:46:24 +0200 Subject: [PATCH] only first 80 chars of result are compared --- s2watchdog/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/s2watchdog/__init__.py b/s2watchdog/__init__.py index 6f686c2..bb78781 100644 --- a/s2watchdog/__init__.py +++ b/s2watchdog/__init__.py @@ -79,11 +79,13 @@ def query_alert_system(url): timeout=TIMEOUT ) response.raise_for_status() - return response.text + return response.text[:80] def send_alert_mail(data): - headers['Reply-To'] = EMAIL_RECIPIENTS + headers = { + 'Reply-To': EMAIL_RECIPIENTS + } body = '\n'.join(EMAIL_BODY) pysema.send( EMAIL_RECIPIENTS,