report: fix checking attachments when checking if the report is empty
Some checks failed
Run tests / tests (push) Failing after 1m4s
Some checks failed
Run tests / tests (push) Failing after 1m4s
This commit is contained in:
parent
296618a34e
commit
9e3faee819
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue