[gsoc-admin] EventConfig: Make cc and bcc optional
- From: Lasse Schuirmann <lschuirma src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gsoc-admin] EventConfig: Make cc and bcc optional
- Date: Wed, 12 Aug 2015 18:27:13 +0000 (UTC)
commit 722571751b961e323f609770278ce406e0df581c
Author: Lasse Schuirmann <lasse schuirmann gmail com>
Date: Wed Aug 12 20:26:46 2015 +0200
EventConfig: Make cc and bcc optional
maillib/config.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/maillib/config.py b/maillib/config.py
index ccdb4fd..2d156db 100644
--- a/maillib/config.py
+++ b/maillib/config.py
@@ -79,8 +79,8 @@ class EventConfig:
def append_mail_from_section(self, section):
text = get_main_data_from_section(section)
sender = section['sender']
- cc = section['cc']
- bcc = section['bcc']
+ cc = section.get('cc', '')
+ bcc = section.get('bcc', '')
recipients_mail_column = section['recipients_mail_column']
recipients_name_column = section.get('recipients_name_column', None)
recipients = []
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]