def handle_error(self):
t, v = sys.exc_info()[:2]
if t is SystemExit:
raise t(v)
elif t in (OSError, ConnectionAbortedError):
# close after peer disconnection
self.close()
else:
asynchat.async_chat.handle_error(self)
Why is there special handling for OSError and ConnectionAbortedError here? This code is incompatible with Python 2. Can I remove it?
Why is there special handling for OSError and ConnectionAbortedError here? This code is incompatible with Python 2. Can I remove it?