Show More
@@ -588,7 +588,6 b' class Session(Configurable):' | |||||
588 | try: |
|
588 | try: | |
589 | return idents, self.unserialize(msg_list, content=content, copy=copy) |
|
589 | return idents, self.unserialize(msg_list, content=content, copy=copy) | |
590 | except Exception as e: |
|
590 | except Exception as e: | |
591 | print (idents, msg_list) |
|
|||
592 | # TODO: handle it |
|
591 | # TODO: handle it | |
593 | raise e |
|
592 | raise e | |
594 |
|
593 | |||
@@ -661,6 +660,8 b' class Session(Configurable):' | |||||
661 | msg_list[i] = msg_list[i].bytes |
|
660 | msg_list[i] = msg_list[i].bytes | |
662 | if self.auth is not None: |
|
661 | if self.auth is not None: | |
663 | signature = msg_list[0] |
|
662 | signature = msg_list[0] | |
|
663 | if not signature: | |||
|
664 | raise ValueError("Unsigned Message") | |||
664 | if signature in self.digest_history: |
|
665 | if signature in self.digest_history: | |
665 | raise ValueError("Duplicate Signature: %r"%signature) |
|
666 | raise ValueError("Duplicate Signature: %r"%signature) | |
666 | self.digest_history.add(signature) |
|
667 | self.digest_history.add(signature) |
General Comments 0
You need to be logged in to leave comments.
Login now