diff --git a/src/socketio/async_client.py b/src/socketio/async_client.py index c7f5e86..0fa35dc 100644 --- a/src/socketio/async_client.py +++ b/src/socketio/async_client.py @@ -158,7 +158,7 @@ class AsyncClient(base_client.BaseClient): await self._handle_reconnect() if self.eio.state == 'connected': return - raise exceptions.ConnectionError(exc.args[0]) from None + raise exceptions.ConnectionError(exc.args[0]) from exc if wait: try: