Looking at the flow of the code, I just don't see how it's possible. `paragraphs` is guaranteed to be non-None, which looks like it cascades down to remove_repetitions being non-None.