Cc should not be empty

master
blallo 2022-09-27 23:03:42 +02:00
parent 9750623929
commit 51b4e6c112
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F
1 changed files with 3 additions and 1 deletions

View File

@ -35,7 +35,9 @@ class Config(object):
content = yaml.safe_load(f)
self.to = get_section(content, "to")
self.cc = get_section(content, "cc")
if cc := content.get("cc"):
self.cc = cc
smtp = get_section(content, "smtp")
for key in [