aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2021-11-11 12:06:21 +0100
committerPhilipp Maier <pmaier@sysmocom.de>2021-11-19 13:21:32 +0100
commitf1fc619b2dc7d45e4986d3508f0e3bed3a9768ee (patch)
tree3da28c6db80d9e9a479a6dd72c3410dd28c5d399
parent4ab971c62e68bb707d050a6fe4348f614f1a4d23 (diff)
commands: use send_apdu_checksw() in method read_record
At the moment the non checking send_apdu() method is used when records are read. Lets use read_record_checksw so that we get an exception in case there is a problem to read the specified record. Change-Id: I9fc411e1b12e8d9fd89b9964209808c0706011bd
-rw-r--r--pySim/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pySim/commands.py b/pySim/commands.py
index cea330e..674e184 100644
--- a/pySim/commands.py
+++ b/pySim/commands.py
@@ -228,7 +228,7 @@ class SimCardCommands(object):
r = self.select_path(ef)
rec_length = self.__record_len(r)
pdu = self.cla_byte + 'b2%02x04%02x' % (rec_no, rec_length)
- return self._tp.send_apdu(pdu)
+ return self._tp.send_apdu_checksw(pdu)
def update_record(self, ef, rec_no:int, data:str, force_len:bool=False, verify:bool=False,
conserve:bool=False):