From 820e42ac28755fd85a5b9c940b1e69b611d10eea Mon Sep 17 00:00:00 2001
From: Emmanuel Viennet <emmanuel.viennet@gmail.com>
Date: Tue, 1 Oct 2024 11:03:20 +0200
Subject: [PATCH] Fix: mails notification sans contenu HTML

---
 app/email.py   | 3 +--
 sco_version.py | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/app/email.py b/app/email.py
index d4e87fad..3f9b0344 100644
--- a/app/email.py
+++ b/app/email.py
@@ -36,7 +36,7 @@ def send_email(
     sender: str,
     recipients: list,
     text_body: str,
-    html_body="",
+    html_body: str | None = None,
     bcc=(),
     attachments=(),
 ):
@@ -56,7 +56,6 @@ def send_email(
             msg.attach(
                 attachment["filename"], attachment["mimetype"], attachment["data"]
             )
-
     send_message(msg)
 
 
diff --git a/sco_version.py b/sco_version.py
index 4891ff4d..5ac36785 100644
--- a/sco_version.py
+++ b/sco_version.py
@@ -1,7 +1,7 @@
 # -*- mode: python -*-
 # -*- coding: utf-8 -*-
 
-SCOVERSION = "9.7.26"
+SCOVERSION = "9.7.27"
 
 SCONAME = "ScoDoc"
 
-- 
GitLab