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 81acb3b commit 20a710bCopy full SHA for 20a710b
pymodbus_repl/client/mclient.py
@@ -89,12 +89,11 @@ def _process_exception(resp, **kwargs) -> dict:
89
"""Set internal process exception."""
90
if "slave" not in kwargs:
91
return {"message": "Broadcast message, ignoring errors!!!"}
92
- if isinstance(resp, ExceptionResponse): # pylint: disable=else-if-used
+ if isinstance(resp, ExceptionResponse):
93
return {
94
"original_function_code": f"{resp.function_code - 0x80} ({hex(resp.function_code - 0x80)})",
95
"error_function_code": f"{resp.function_code} ({hex(resp.function_code)})",
96
"exception code": resp.exception_code,
97
- "message": ExceptionResponse.decode(resp.exception_code),
98
}
99
if isinstance(resp, ModbusIOException):
100
0 commit comments