From 41c22176e4d2a3874e072240ef6acd3351793a22 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Wed, 26 Feb 2020 22:18:32 +0700 Subject: transport/pcsc: cosmetic: reuse the existing code of PcscSimLink Change-Id: I5360df644032b95654e99ccaa5118952e8d55faf --- pySim/transport/pcsc.py | 7 ++----- 1 file 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): -- cgit v1.2.3