Skip to content

Commit 9effe4a

Browse files
committed
Fix: SimpleClient.call does not raise TimeoutError on timeout
1 parent f61e0be commit 9effe4a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/socketio/simple_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ def call(self, event, data=None, timeout=60):
155155
try:
156156
return self.client.call(event, data, namespace=self.namespace,
157157
timeout=timeout)
158+
except TimeoutError:
159+
raise
158160
except SocketIOError:
159161
pass
160162

0 commit comments

Comments
 (0)