handle the exception raised by the playground when calling get_block with indexes out of range