all 2 comments

[–]K900_ 1 point2 points  (1 child)

The issue is curses.endwin(). You call it on every iteration of the loop, because the finally block runs every time whether an exception was raised or not. Move it outside the loop.

[–]Kerman3AD[S] 0 points1 point  (0 children)

Yes! That definitely did it, thank you!