Skip to content

Commit

Permalink
readabilty update
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Daniel Bennett committed Dec 3, 2020
1 parent ad4935b commit c895ef1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions api/ECNQueue.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit c895ef1

Please sign in to comment.