Change-Id: I1af2fd04ba935fc70a2306342eeb247d941c67af
This commit is contained in:
Philipp Maier
2026-04-15 10:25:06 +02:00
parent d7f4d20471
commit c74d7fbd0d

View File

@@ -302,6 +302,8 @@ class LinkBaseTpdu(LinkBase):
prev_tpdu = tpdu
data, sw = self.send_tpdu(tpdu)
log.debug("T0: case #%u TPDU: %s => %s %s", case, tpdu, data or "(no data)", sw or "(no status word)")
if sw is None:
raise ValueError("no status word received")
# After sending the APDU/TPDU the UICC/eUICC or SIM may response with a status word that indicates that further
# TPDUs have to be sent in order to complete the task.