SecioException inherit from HandshakeFailure

This commit is contained in:
NIC619 2019-09-16 19:11:06 +08:00
parent d6dda91482
commit 359bcf45ff
No known key found for this signature in database
GPG Key ID: 570C35F5C2D51B17

View File

@ -1,4 +1,7 @@
class SecioException(Exception): from libp2p.security.exceptions import HandshakeFailure
class SecioException(HandshakeFailure):
pass pass
@ -19,9 +22,5 @@ class InvalidSignatureOnExchange(SecioException):
pass pass
class HandshakeFailed(SecioException):
pass
class IncompatibleChoices(SecioException): class IncompatibleChoices(SecioException):
pass pass