diff --git a/api/ECNQueue.py b/api/ECNQueue.py index 114c856..1042cb6 100644 --- a/api/ECNQueue.py +++ b/api/ECNQueue.py @@ -259,7 +259,7 @@ def __parseSections(self) -> list: newLinebegining = True newLineEnd = True - while newLinebegining or newLineEnd: + while (newLinebegining or newLineEnd) and len(initialMessageContent) > 1: # Initializes the Length of Message content each iteration of the loop initialmessagecontentLength = len(initialMessageContent)