From a390d213851460787f8032c5fa01794855a3c891 Mon Sep 17 00:00:00 2001 From: NIC619 Date: Tue, 24 Dec 2019 21:57:13 +0800 Subject: [PATCH] Remove `RawConnError` from exception handling --- libp2p/network/connection/raw_connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2p/network/connection/raw_connection.py b/libp2p/network/connection/raw_connection.py index bbc41b2..69d8796 100644 --- a/libp2p/network/connection/raw_connection.py +++ b/libp2p/network/connection/raw_connection.py @@ -58,5 +58,5 @@ class RawConnection(IRawConnection): try: await self.writer.wait_closed() # In case the connection is already reset. - except (ConnectionResetError, RawConnError): + except ConnectionResetError: return