Skip to content

Commit 409e9a4

Browse files
kentakayamadajiaji
andauthored
Update cwt/cose_message.py
Co-authored-by: Ajitomi Daisuke <dajiaji@gmail.com>
1 parent 2892ef1 commit 409e9a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cwt/cose_message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def attach_payload(self: Self, payload: bytes) -> COSEMessage:
337337
ValueError: The payload already exist.
338338
"""
339339

340-
if self._payload is not None:
340+
if self._msg[2] is not None:
341341
raise ValueError("The payload already exist.")
342342
self._payload = payload
343343

0 commit comments

Comments
 (0)