aboutsummaryrefslogtreecommitdiffstats
path: root/pySim
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2020-02-26 22:18:32 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2020-02-27 01:54:22 +0700
commit41c22176e4d2a3874e072240ef6acd3351793a22 (patch)
treeece6d066fc49cb5e713fcba0d7b2204f27d13837 /pySim
parent7ba2428de5980fa70a4732c21386673fa012b13f (diff)
transport/pcsc: cosmetic: reuse the existing code of PcscSimLink
Diffstat (limited to 'pySim')
-rw-r--r--pySim/transport/pcsc.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/pySim/transport/pcsc.py b/pySim/transport/pcsc.py
index 47c4185..7fa922f 100644
--- a/pySim/transport/pcsc.py
+++ b/pySim/transport/pcsc.py
@@ -63,11 +63,8 @@ class PcscSimLink(LinkBase):
self._con.disconnect()
def reset_card(self):
- self._con.disconnect()
- try:
- self._con.connect()
- except NoCardException:
- raise NoCardError()
+ self.disconnect()
+ self.connect()
return 1
def send_apdu_raw(self, pdu):