Skip to content

Commit 20a710b

Browse files
committed
ModbusExceptions enum is gone
1 parent 81acb3b commit 20a710b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pymodbus_repl/client/mclient.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,11 @@ def _process_exception(resp, **kwargs) -> dict:
8989
"""Set internal process exception."""
9090
if "slave" not in kwargs:
9191
return {"message": "Broadcast message, ignoring errors!!!"}
92-
if isinstance(resp, ExceptionResponse): # pylint: disable=else-if-used
92+
if isinstance(resp, ExceptionResponse):
9393
return {
9494
"original_function_code": f"{resp.function_code - 0x80} ({hex(resp.function_code - 0x80)})",
9595
"error_function_code": f"{resp.function_code} ({hex(resp.function_code)})",
9696
"exception code": resp.exception_code,
97-
"message": ExceptionResponse.decode(resp.exception_code),
9897
}
9998
if isinstance(resp, ModbusIOException):
10099
return {

0 commit comments

Comments
 (0)