def _check_error_entries(self, session_id):
        '''Check if the previous session contains queries that resulted in
        errors and suggest sending the session'''
        error_entries = cursor_value(self._sql('''
            SELECT COUNT(*) FROM bayesdb_session_entries
                WHERE error IS NOT NULL AND session_id = ?
        ''', (session_id,)))
        # suggest sending sessions but don't suggest more than once
        if (error_entries > 0 and not self._suggested_send):
            self._logger.warn(_error_previous_session_msg)
            self._suggested_send = True
        return error_entries
dataset/ETHPy150Open probcomp/bayeslite/src/sessions.py/SessionOrchestrator._check_error_entries/original