From a7b092a305ec180856dee34bb100969cf34222ef Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Sat, 9 Jun 2012 15:04:27 -0700 Subject: Fix Python3 exception handling. Fixes issue #173 --- sleekxmpp/plugins/xep_0065/proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sleekxmpp') diff --git a/sleekxmpp/plugins/xep_0065/proxy.py b/sleekxmpp/plugins/xep_0065/proxy.py index 4fdd2ad8..012175ac 100644 --- a/sleekxmpp/plugins/xep_0065/proxy.py +++ b/sleekxmpp/plugins/xep_0065/proxy.py @@ -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) -- cgit v1.2.3