def sendLine(self, line):
        """Throw up if the line is longer than 1022 characters"""
        if len(line) > self.MAX_LENGTH - 2:
            raise ValueError("DictClient tried to send a too long line")
        basic.LineReceiver.sendLine(self, line)
Throw up if the line is longer than 1022 characters
stackoverflow/venv/lib/python3.6/site-packages/twisted/protocols/dict.py