revert changes made in r84236 committed by accident
diff --git a/Lib/smtpd.py b/Lib/smtpd.py
index e8459f0..bd764cc 100755
--- a/Lib/smtpd.py
+++ b/Lib/smtpd.py
@@ -414,20 +414,7 @@
localaddr, remoteaddr), file=DEBUGSTREAM)
def handle_accept(self)
- try:
- conn, addr = self.accept()
- except TypeError:
- # sometimes accept() might return None
- return
- except socket.error, err:
- # ECONNABORTED might be thrown
- if err[0] != errno.ECONNABORTED:
- raise
- return
- else:
- # sometimes addr == None instead of (ip, port)
- if addr == None:
- return
+ conn, addr = self.accept()
print('Incoming connection from %s' % repr(addr), file=DEBUGSTREAM)
channel = self.channel_class(self, conn, addr)