netlib wraps IOError in NetLibDisconnect, so we need to cover this as well.
This commit is contained in:
Maximilian Hils 2013-07-28 21:05:17 +02:00
parent a21c989ccd
commit 29bcbd57d5
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ class ServerConnection(tcp.TCPClient):
if self.connection:
try:
self.wfile.flush()
except IOError: # pragma: no cover
except IOError, tcp.NetLibDisconnect: # pragma: no cover
pass
try:
self.connection.close()