diff --git a/src/machinevisiontoolbox/Sources.py b/src/machinevisiontoolbox/Sources.py index c1c0d211..36f794d0 100644 --- a/src/machinevisiontoolbox/Sources.py +++ b/src/machinevisiontoolbox/Sources.py @@ -171,9 +171,7 @@ def skip(n: int) -> None: nonlocal pos pos += n if pos > len(raw): - raise ValueError( - f"message truncated: need {pos} bytes, have {len(raw)}" - ) + raise ValueError(f"message truncated: need {pos} bytes, have {len(raw)}") try: if cdr: