From 9e3faee8193e63204c38725f5e06ef4380ffae8d Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 2 May 2024 15:56:41 +0200 Subject: [PATCH] report: fix checking attachments when checking if the report is empty --- mylib/report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mylib/report.py b/mylib/report.py index ccdc8ed..5c96646 100644 --- a/mylib/report.py +++ b/mylib/report.py @@ -132,7 +132,7 @@ class Report(ConfigurableObject): # pylint: disable=useless-object-inheritance " email_client" ) content = self.get_content() - if not content: + if not content and not self._attachment_files and not self._attachment_payloads: log.debug("Report is empty, do not send it") return True msg = email_client.forge_message(