def handler():
            nonlocal called
            called += 1
            raise ValueError("yeah sync")
def reorder_item(self, item, position):
    new_position = min(max(position, 0), len(self._items) - 1)