m1n1.utils: Fix chexundump exception

Signed-off-by: Martin Povišer <povik@protonmail.com>
This commit is contained in:
Martin Povišer 2022-10-20 23:06:00 +02:00 committed by Hector Martin
parent 9a23d55b83
commit f83af93c05

View file

@ -123,7 +123,7 @@ def chexundump(dump):
decoded.extend([int(data[i:i+2], 16) for i \
in range(0, len(data), 2)])
except (ValueError, TypeError) as exc:
raise ValueError("can't decode line: %s", line) from exc
raise ValueError(f"can't decode line: {line:r}") from exc
return decoded