aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/tcp.py
diff options
context:
space:
mode:
Diffstat (limited to 'netlib/tcp.py')
-rw-r--r--netlib/tcp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/netlib/tcp.py b/netlib/tcp.py
index 485d821f..07b28cf9 100644
--- a/netlib/tcp.py
+++ b/netlib/tcp.py
@@ -298,7 +298,7 @@ class BaseHandler:
self.close()
self.wfile.close()
self.rfile.close()
- except socket.error:
+ except (socket.error, NetLibDisconnect):
# Remote has disconnected
pass