mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Add clearer indication of "self encryption"
This commit is contained in:
@ -2,6 +2,15 @@ class SecioException(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class SelfEncryption(SecioException):
|
||||
"""
|
||||
Raised to indicate that a host is attempting to encrypt communications
|
||||
with itself.
|
||||
"""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class PeerMismatchException(SecioException):
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user