AsyncUDPSocket.handle_error
authorGuido Trotter <ultrotter@google.com>
Fri, 14 May 2010 13:52:58 +0000 (14:52 +0100)
committerGuido Trotter <ultrotter@google.com>
Fri, 14 May 2010 15:46:35 +0000 (16:46 +0100)
commit3660fcf506c75c638589939331654b857ad0cd36
tree973670f7fa73adc0af49fad969a7bad89d44a61f
parent48bf6352baff071448c9ffc89b1fa64e3d868874
AsyncUDPSocket.handle_error

By overriding the default asyncore handle_error (which closes the
socket) with our own version, which logs what happened but tries to
proceed, we can get rid of a couple of try/except blocks. The resulting
churn is deindentation of the internal code.

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/daemon.py