We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbd573f commit 34ef7b6Copy full SHA for 34ef7b6
1 file changed
s7/connection.py
@@ -602,10 +602,7 @@ def ensure(n: int) -> None:
602
del buf[:frag_len]
603
fragments += 1
604
if fragments > self._MAX_REASSEMBLED_FRAGMENTS or len(data) > self._MAX_REASSEMBLED_BYTES:
605
- raise S7ConnectionError(
606
- f"Reassembled response exceeds limits "
607
- f"({len(data)} bytes, {fragments} fragments)"
608
- )
+ raise S7ConnectionError(f"Reassembled response exceeds limits ({len(data)} bytes, {fragments} fragments)")
609
# The next 4 bytes are either the trailer (0x72 ver 0x0000) or the next
610
# fragment's header (0x72 ver len>0).
611
ensure(4)
0 commit comments