Skip to content
Snippets Groups Projects
Commit d6d3b56f authored by Rajmund Hruška's avatar Rajmund Hruška
Browse files

Fix: Check for the existence of the key. (Redmine issue: #6227)

parent 89dae473
No related branches found
No related tags found
No related merge requests found
......@@ -207,7 +207,7 @@ class MailerPlugin(pyzenkit.baseapp.ZenAppPlugin):
)
email_headers['to'] = self.get_application().c(self.CONFIG_MAIL_ADMIN)
if email_headers['cc']:
if 'cc' in email_headers and email_headers['cc']:
self.get_application().logger.info(
"Modifying report {}: header cc changed from {} to [] (rdr: {}, mtm: {})".format(
email_headers.get('report_id', 'None'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment