Skip to content

Commit

Permalink
Merge pull request #648 from Morg42/develop
Browse files Browse the repository at this point in the history
lib.network: add serial connection reset error handling
  • Loading branch information
Morg42 authored Apr 26, 2024
2 parents a52de48 + 07f520a commit 0c958a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ def send(self, message):
else:
return False

except (BrokenPipeError, TimeoutError) as e:
except (BrokenPipeError, TimeoutError, ConnectionResetError) as e:
if e.errno == 60:
# timeout
self.logger.warning(f'{self._id} detected timeout, disconnecting, send failed.')
Expand Down

0 comments on commit 0c958a5

Please sign in to comment.