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 48ae40d commit ac4ae42Copy full SHA for ac4ae42
pymodbus/client/serial.py
@@ -218,7 +218,9 @@ def connect(self):
218
if self.strict:
219
self.socket.inter_byte_timeout = self.inter_byte_timeout
220
self.last_frame_end = None
221
- except serial.SerialException as msg:
+ # except serial.SerialException as msg:
222
+ # pyserial raises undocumented exceptions like termios
223
+ except Exception as msg: # pylint: disable=broad-exception-caught
224
Log.error("{}", msg)
225
self.close()
226
return self.socket is not None
0 commit comments