Skip to content

Conversation

@nitzanfarhi
Copy link

Hi 😄 ,
an exception occured to me when parse_message_line receives an empty string.
When this occurs, parse_message_line returns None.
After that, "\n".join throws an exception when one of the members of the list is none.

Example to an input that causes this is:

parts['message']='    Adding titles to links\n    \u2028\n'

The fix is simple, replace None with empty string.

@nitzanfarhi
Copy link
Author

I will also add that this occurs in general when chars like \u2028 exist since they are considered as line breaks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant