diff --git a/sportorg/modules/sportiduino/sportiduino.py b/sportorg/modules/sportiduino/sportiduino.py index 3c922c5f..84814729 100644 --- a/sportorg/modules/sportiduino/sportiduino.py +++ b/sportorg/modules/sportiduino/sportiduino.py @@ -3,7 +3,6 @@ import time import serial -import termios from sportorg.common.singleton import singleton from sportorg.libs.sportiduino import sportiduino @@ -33,11 +32,12 @@ def run(self): self._sportiduino_poll_card(sduino) except sportiduino.SportiduinoException as e: self._logger.error(str(e)) - except (serial.serialutil.SerialException, termios.error) as e: + except serial.serialutil.SerialException as e: self._logger.error(str(e)) break except Exception as e: self._logger.error(str(e)) + break sduino.disconnect() self._logger.debug('Stop sportiduino reader')