Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions pymodbus/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,10 @@ def _recv(self, expected_response_length, full): # NOSONAR
f"{actual} bytes !!!!"
)
_logger.debug(txt)
raise InvalidMessageReceivedException(
"Incomplete message received, expected %d bytes Recieved "
"%d bytes !!!!" % (total, actual)
)
elif not actual:
# If actual == 0 and total is not None then the above
# should be triggered, so total must be None here
Expand Down Expand Up @@ -578,8 +582,6 @@ def delTransaction(self, tid):
# --------------------------------------------------------------------------- #
# Exported symbols
# --------------------------------------------------------------------------- #


__all__ = [
"FifoTransactionManager",
"DictTransactionManager",
Expand Down