Skip to content

Commit

Permalink
Debug at Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
sembruk committed Nov 21, 2024
1 parent de62c21 commit 9b42642
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sportorg/modules/sportiduino/sportiduino.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import time
import serial
import termios

from sportorg.common.singleton import singleton
from sportorg.libs.sportiduino import sportiduino
Expand Down Expand Up @@ -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')

Expand Down

0 comments on commit 9b42642

Please sign in to comment.