-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix AbstractTransport repr socket error (#361)
If AbstractTransport's self.sock is disconnected, then self.sock.getpeername() will raise an error in __repr__, which shows up in backtraces for other upstream errors. Fix this by catching socket.error in __repr__ and putting the error info in to the returned repr string. Fixes #361
- Loading branch information
Showing
2 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters