Skip to content

Commit 2915715

Browse files
MrWaloojaniversen
authored andcommitted
Fix exception text in ModbusPDU.validateAddress (#2551)
1 parent 9fad3b7 commit 2915715

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymodbus/pdu/pdu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def validateAddress(self, address: int = -1) -> None:
5353
if address == -1:
5454
address = self.address
5555
if not 0 <= address <= 65535:
56-
raise ValueError(f"9 < address {address} < 65535 !")
56+
raise ValueError(f"0 < address {address} < 65535 !")
5757

5858
def __str__(self) -> str:
5959
"""Build a representation of an exception response."""

0 commit comments

Comments
 (0)