def emit(self, record):
        sbj = (request.host_url.rstrip('/'), request.path) % "APP ERROR: %s%s"
        body = self.format(record) or 'Wrong record.'

        msg = Message(sbj, body=body, recipients=current_app.config.get('ADMINS', []))
        mail.send(msg)


# pymode:lint_ignore=F0401
dataset/ETHPy150Open klen/Flask-Foundation/base/core/__init__.py/FlaskMailHandler.emit/swapped operands of `%`