Skip to content

Commit ffa0da6

Browse files
authored
Expose exception_code to API. (#2615)
1 parent 33a21ad commit ffa0da6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pymodbus/pdu/pdu.py

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def __init__(self,
3737
self.registers: list[int] = registers or []
3838
self.count: int = count or len(self.registers)
3939
self.status: int = status
40+
self.exception_code: int = 0
4041
self.fut: asyncio.Future
4142

4243
def isError(self) -> bool:

0 commit comments

Comments
 (0)