'Catch failures of _commit_puts() if broker is intended for
reading of stats, and thus does not care for pending updates.'

def _commit_puts_stale_ok(self):

    if ((self.db_file == ':memory:') or (not os.path.exists(self.pending_file))):
        return
    try:
        with lock_parent_directory(self.pending_file, self.pending_timeout):
            self._commit_puts()
    except (LockTimeout, sqlite3.OperationalError):
        if (not self.stale_reads_ok):
            raise
