Browse Source
Preserve exception context in AsyncClient.connect
pull/1450/head
Tim Van Baak
1 month ago
Failed to extract signature
1 changed files with
1 additions and
1 deletions
-
src/socketio/async_client.py
|
@ -158,7 +158,7 @@ class AsyncClient(base_client.BaseClient): |
|
|
await self._handle_reconnect() |
|
|
await self._handle_reconnect() |
|
|
if self.eio.state == 'connected': |
|
|
if self.eio.state == 'connected': |
|
|
return |
|
|
return |
|
|
raise exceptions.ConnectionError(exc.args[0]) from None |
|
|
raise exceptions.ConnectionError(exc.args[0]) from exc |
|
|
|
|
|
|
|
|
if wait: |
|
|
if wait: |
|
|
try: |
|
|
try: |
|
|