Skip to content

Commit 659da4b

Browse files
committed
Merge branch 'add-detached-content-converter' of github.com:kentakayama/python-cwt into add-detached-content-converter
2 parents d29b4d0 + 409e9a4 commit 659da4b

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
@@ -327,7 +327,7 @@ def attach_payload(self: Self, payload: bytes) -> COSEMessage:
327327
ValueError: The payload already exist.
328328
"""
329329

330-
if self._payload is not None:
330+
if self._msg[2] is not None:
331331
raise ValueError("The payload already exist.")
332332
self._payload = payload
333333

0 commit comments

Comments
 (0)