Skip to content

Commit

Permalink
Fix "list index out of range" as per kipe#138
Browse files Browse the repository at this point in the history
Apply patch from @kridgo.
See kipe#134 and kipe#138 for more details.
  • Loading branch information
mak-gitdev committed Jun 2, 2023
1 parent 10c4ae2 commit 8121bb7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion enocean/communicators/serialcommunicator.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ def run(self):
except serial.SerialException:
self.logger.error('Serial port exception! (device disconnected or multiple access on port?)')
self.stop()
self.parse()
try:
self.parse()
except Exception as e:
self.logger.error('Exception occured while parsing: ' + str(e))
time.sleep(0)

self.__ser.close()
Expand Down

0 comments on commit 8121bb7

Please sign in to comment.