Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
folix-01 committed Jun 28, 2024
1 parent 4a84f88 commit 9f66f44
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ def send_data(self):
def prepare_message(self):
from bs4 import BeautifulSoup

mail_header = (self.block.get("mail_header", {}).get("data", None),)
mail_footer = (self.block.get("mail_footer", {}).get("data", None),)
mail_header = self.block.get("mail_header", {}).get("data", "")
mail_footer = self.block.get("mail_footer", {}).get("data", "")

# Check if there is content
mail_header = BeautifulSoup(mail_header).get_text() and mail_header or None
Expand Down

0 comments on commit 9f66f44

Please sign in to comment.