Getting an exception when trying to close AsyncModbusSerialClient #1504
-
I am using a USB dongle (RS 485) to communicate with a raspberry pi through serial communication. Whenever I try to close the client I get the following error -
Here is a stripped down version of my code-
I am not sure if I am doing something wrong but it seems like the bug is in the library. Can anyone shed some light in the issue? Thankfully the connection does close and the rest of the code works as expected, it just adds a lot of trash to our logs. I am on pymodbus version 3.2.2 and Python 3.9.2. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
looks like a bug, I will investigate a bit. |
Beta Was this translation helpful? Give feedback.
-
the trace back is not complete, I cannot see which of the functions you call provoke the exception. |
Beta Was this translation helpful? Give feedback.
-
you have a raising effect, which we have not seen before, and which I cannot explain. However I just merged a commit, that ensures you do not get an exception. It is available on dev, and will be part of version 3.3 |
Beta Was this translation helpful? Give feedback.
you have a raising effect, which we have not seen before, and which I cannot explain. However I just merged a commit, that ensures you do not get an exception.
It is available on dev, and will be part of version 3.3