def send_email(self, additional_messages): if self.email: if additional_messages: log2email(0, '\n'.join(additional_messages), cleanYN=1, notimeYN=1) reposync.send_mail(sync_type="CDN")