From c44be5e24784ca4d934fe033011838c5c6b155b1 Mon Sep 17 00:00:00 2001 From: NIC619 Date: Thu, 19 Sep 2019 21:23:01 +0800 Subject: [PATCH] Add `OpenConnectionError` for base transport --- libp2p/transport/exceptions.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libp2p/transport/exceptions.py b/libp2p/transport/exceptions.py index 00f7d387..d935b3a0 100644 --- a/libp2p/transport/exceptions.py +++ b/libp2p/transport/exceptions.py @@ -1,7 +1,10 @@ from libp2p.exceptions import BaseLibp2pError -# TODO: Add `BaseLibp2pError` and `UpgradeFailure` can inherit from it? +class OpenConnectionError(BaseLibp2pError): + pass + + class UpgradeFailure(BaseLibp2pError): pass