def emit(self, record):
        """Emit a record."""
        
        try:
            self.mailer.new(plain=self.format(record)).send()
        
        except (KeyboardInterrupt, __HOLE__):
            raise
        
        except:
            self.handleError(record)
dataset/ETHPy150Open marrow/mailer/marrow/mailer/logger.py/MailHandler.emit