mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-05-08 02:15:07 +03:00
fix
Change-Id: I1af2fd04ba935fc70a2306342eeb247d941c67af
This commit is contained in:
@@ -302,6 +302,8 @@ class LinkBaseTpdu(LinkBase):
|
|||||||
prev_tpdu = tpdu
|
prev_tpdu = tpdu
|
||||||
data, sw = self.send_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)")
|
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
|
# 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.
|
# TPDUs have to be sent in order to complete the task.
|
||||||
|
|||||||
Reference in New Issue
Block a user