From 51b4e6c112ba865cd5994461b9d85dea1ef1c697 Mon Sep 17 00:00:00 2001 From: Blallo Date: Tue, 27 Sep 2022 23:03:42 +0200 Subject: [PATCH] Cc should not be empty --- latecomers/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/latecomers/config.py b/latecomers/config.py index a99eabd..e7bfdb7 100644 --- a/latecomers/config.py +++ b/latecomers/config.py @@ -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 [