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 [