SyntaxFix
Write A Post
Hire A Developer
Questions
If you're going to raise an exception, you might raise a StopIteration exception. That will at least make the intent obvious.