def emit(self, record):
        try:
            msg = self.format(record)
            stream = self.stream
            if record.levelno in self.store_msg_loglevels:
                self._store_msg(msg, record.levelno)
            else:
                self._write_msg(stream, msg, record)
        except (__HOLE__, SystemExit):
            raise
        except:
            self.handleError(record)
dataset/ETHPy150Open KeepSafe/ks-email-parser/email_parser/utils.py/ProgressConsoleHandler.emit