diff --git a/pySim/card_handler.py b/pySim/card_handler.py index ef1b0713..385c55e2 100644 --- a/pySim/card_handler.py +++ b/pySim/card_handler.py @@ -94,7 +94,8 @@ class CardHandlerAuto: def get(self, first = False): print("Ready for Programming: Transporting card into the reader-bay...") self.__exec_cmd(self.cmds['get']) - self.sl.connect() + if self.sl: + self.sl.connect() def error(self): print("Programming failed: Transporting card to the error-bin...")