Skip to content

Commit b2a1468

Browse files
committed
Ruff
1 parent 3bfd3ac commit b2a1468

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

async_substrate_interface/async_substrate.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,9 @@ async def _handler(self, ws: ClientConnection) -> Union[None, Exception]:
736736
return None # Clean exit
737737

738738
# Check for timeout/connection errors that should trigger reconnect
739-
if isinstance(task_res, (asyncio.TimeoutError, TimeoutError, ConnectionClosed)):
739+
if isinstance(
740+
task_res, (asyncio.TimeoutError, TimeoutError, ConnectionClosed)
741+
):
740742
should_reconnect = True
741743
logger.debug(f"Reconnection triggered by: {type(task_res).__name__}")
742744

@@ -858,7 +860,7 @@ async def _start_receiving(self, ws: ClientConnection) -> Exception:
858860
if isinstance(e, ssl.SSLError):
859861
e = ConnectionClosed
860862
if not isinstance(
861-
e, (asyncio.TimeoutError, TimeoutError, ConnectionClosed)
863+
e, (asyncio.TimeoutError, TimeoutError, ConnectionClosed)
862864
):
863865
logger.exception("Websocket receiving exception", exc_info=e)
864866
for fut in self._received.values():

0 commit comments

Comments
 (0)