fix #144
netlib wraps IOError in NetLibDisconnect, so we need to cover this as well.
This commit is contained in:
parent
a21c989ccd
commit
29bcbd57d5
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue