Ah, this morning when I went to the site it only showed "No more items" no matter what I did. Now it shows "No more items" for 2 seconds and then starts showing items.
I think the first example is what another commenter meant as unsafe. My example is under the hood doing exactly what the second (safe) example is doing, but without the need to use the context manager yourself.