Cc should not be empty
This commit is contained in:
parent
9750623929
commit
51b4e6c112
|
@ -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 [
|
||||
|
|
Loading…
Reference in New Issue
Block a user