Skip to content

Commit d537f87

Browse files
committed
Expose exception_code to API. (#2615)
1 parent 731d6c1 commit d537f87

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pymodbus/pdu/pdu.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def __init__(self,
3535
self.registers: list[int] = registers or []
3636
self.count: int = count or len(self.registers)
3737
self.status: int = status
38+
self.exception_code: int = 0
3839
self.fut: asyncio.Future
3940

4041
def isError(self) -> bool:

0 commit comments

Comments
 (0)