Hangs head in deep shame

That's indeed the problem.
Yes, I did test this thing, but probably modified the code afterwards...
It probably was this first (when tested):
- Code: Select all
if len(new_lines) == 1:
new_lines = self.data.split('\n')
And I later optimized it to:
- Code: Select all
if len(new_lines) == 1 and '\r' not in data:
new_lines = self.data.split('\n')
And, hey, there's no need to test this simple change, is there
It's still a riddle why it goes wrong with your provider, but it doesn't matter that much.
When the code triggers, it runs into an exception, which is caught but will result in a "server disconnected" state.
Thank you very much for your support!
[EDIT]
I suspect that your provider sometimes sends single line article chunks,
because a single line chunk will trigger the crash.
It's a very good thing that you found this, because it's very likely that this can
happen with other providers too.