def delete_expired_sessions(self):
        if self._timeout is None:
            return

        session_ids = self.list_sessions()
        for session_id in session_ids:
            try:
                session_obj = self.get_session_obj(session_id)
                if session_obj.is_expired(self._timeout):
                    self.delete_session(session_id)
            except SessionErrors.SessionNotFoundError:
                # The session was removed during the iteration of this loop
                continue
            except:
                exc, inst, _ = sys.exc_info()
                log.log( self, log.level.Error, (exc, inst, session_id) % "Unexpected exception (%s, %s) while trying to remove session_id %s")
                log.log_exc( self, log.level.Warning )
                continue
dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/voodoo/sessions/memory.py/SessionMemoryGateway.delete_expired_sessions/swapped operands of `%`