Skip to content

Commit 8923605

Browse files
kentakayamadajiaji
andauthored
Update cwt/cose_message.py
Co-authored-by: Ajitomi Daisuke <dajiaji@gmail.com>
1 parent 98d0f58 commit 8923605

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
@@ -319,7 +319,7 @@ def detach_payload(self: Self) -> Tuple[COSEMessage, bytes]:
319319
ValueError: The payload does not exist.
320320
"""
321321

322-
if not isinstance(self._payload, bytes):
322+
if self._msg[2] is None:
323323
raise ValueError("The payload does not exist.")
324324

325325
payload = self._payload

0 commit comments

Comments
 (0)