Sorry, momentary brainfart—I meant to say that the block is *always* executed because there's no `break`. (In Python, the `else` block in a `for` is only executed if the loop doesn't break.)

Overall, is it correct to say that this loop (and the lines below) could be replaced with `return ', '.join(allowed_genres)`?