Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions aim/ext/transport/request_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def worker(self):

def _try_exec_task(self, task_f, *args):
# temporary workaround for M1 build
from websockets.exceptions import ConnectionClosedError
from websockets.exceptions import WebSocketException

retry = 0
while retry < self.retry_count:
Expand All @@ -79,7 +79,7 @@ def _try_exec_task(self, task_f, *args):
try:
task_f(*args)
return True
except ConnectionClosedError as e:
except (WebSocketException, TimeoutError) as e:
self._needs_reconnect = True

retry += 1
Expand Down