Cc should not be empty

This commit is contained in:
sfigato 2022-09-27 23:03:42 +02:00
parent 9750623929
commit 51b4e6c112
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F

View File

@ -35,7 +35,9 @@ class Config(object):
content = yaml.safe_load(f) content = yaml.safe_load(f)
self.to = get_section(content, "to") 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") smtp = get_section(content, "smtp")
for key in [ for key in [