def METHOD_NAME(self, e: Exception):
    self.log_error(e)
    self.report.errors.append(str(e))
    self.report.status = self.report.Status.FAILED
    self.report.save(update_fields=["status", "errors"])
    if settings.STAGE_CI:
        raise e