We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61d9e9a commit 20c1688Copy full SHA for 20c1688
pymodbus/client/tcp.py
@@ -89,7 +89,6 @@ async def _connect(self):
89
),
90
timeout=self.params.timeout,
91
)
92
- return transport, protocol
93
except Exception as exc: # pylint: disable=broad-except
94
txt = f"Failed to connect: {exc}"
95
_logger.warning(txt)
@@ -98,6 +97,7 @@ async def _connect(self):
98
97
txt = f"Connected to {self.params.host}:{self.params.port}."
99
_logger.info(txt)
100
self.reset_delay()
+ return transport, protocol
101
102
def protocol_made_connection(self, protocol):
103
"""Notify successful connection."""
0 commit comments