Fix Python3 exception handling.

Fixes issue #173
This commit is contained in:
Lance Stout 2012-06-09 15:04:27 -07:00
parent daa73a3f3c
commit a7b092a305

View file

@ -318,7 +318,7 @@ class Proxy(Thread):
# Wait any read available data on socket. Timeout
# after 5 secs.
ins, out, err = select([self.s, ], [], [], 5)
except Exception, e:
except Exception as e:
# There's an error with the socket (maybe the socket
# has been closed and the file descriptor is bad).
log.debug('Socket error: %s' % e)