We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f1b480 commit cde1b97Copy full SHA for cde1b97
1 file changed
easyrpc/proxy.py
@@ -4,10 +4,9 @@
4
import asyncio
5
from traceback import format_exc
6
from concurrent.futures._base import CancelledError
7
-from aiohttp._websocket.models import WSMessage, WSMsgType
8
9
-from aiohttp import ClientSession
10
-import aiohttp
+from aiohttp import ClientSession, WSMessage, WSMsgType
+from aiohttp.client_exceptions import ClientConnectorError
11
12
from easyrpc.register import (
13
create_proxy_from_config,
@@ -526,7 +525,7 @@ async def keep_alive():
526
525
self.namespaces = {}
527
except Exception as e:
528
if type(e) in {
529
- aiohttp.client_exceptions.ClientConnectorError,
+ ClientConnectorError,
530
ConnectionRefusedError
531
}:
532
connection_error = ServerUnreachable(
0 commit comments