Include repr() of data in error msg

This commit is contained in:
jan 2024-12-20 19:52:16 -08:00
parent a50d53b508
commit 4ffb87d361

View File

@ -142,7 +142,7 @@ class NoDataRecord(Record[None, None]):
@classmethod @classmethod
def pack_data(cls: type[Self], data: None) -> bytes: def pack_data(cls: type[Self], data: None) -> bytes:
if data is not None: if data is not None:
raise KlamathError('?? Packing {data} into NoDataRecord??') raise KlamathError('?? Packing {data!r} into NoDataRecord??')
return b'' return b''