From c895ef1c219769f5b1e3391da0750009d89b411b Mon Sep 17 00:00:00 2001 From: Jacob Daniel Bennett Date: Thu, 3 Dec 2020 11:45:05 -0500 Subject: [PATCH] readabilty update --- api/ECNQueue.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api/ECNQueue.py b/api/ECNQueue.py index b6e870c..24e640d 100644 --- a/api/ECNQueue.py +++ b/api/ECNQueue.py @@ -915,9 +915,7 @@ def __userReplyParsing(self, replyContent: list, lineNumber: int) -> dict: if line == "\n": newLineCounter = newLineCounter + 1 - if newLineCounter == 2: - - if "datetime" not in replyFromInfo.keys(): + if newLineCounter == 2 and "datetime" not in replyFromInfo.keys(): errorMessage = "Expected \"Date: [datetime]\" in the header info" return self.__errorParsing(line, lineNumber + lineNum + 1, errorMessage)