From 4ffb87d361a70e7fdc1e4c9034017969823c5d4d Mon Sep 17 00:00:00 2001 From: jan Date: Fri, 20 Dec 2024 19:52:16 -0800 Subject: [PATCH] Include repr() of data in error msg --- klamath/record.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klamath/record.py b/klamath/record.py index 48bfe7c..f5fce86 100644 --- a/klamath/record.py +++ b/klamath/record.py @@ -142,7 +142,7 @@ class NoDataRecord(Record[None, None]): @classmethod def pack_data(cls: type[Self], data: None) -> bytes: if data is not None: - raise KlamathError('?? Packing {data} into NoDataRecord??') + raise KlamathError('?? Packing {data!r} into NoDataRecord??') return b''