summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-06-09 15:04:27 -0700
committerLance Stout <lancestout@gmail.com>2012-06-09 15:04:27 -0700
commita7b092a305ec180856dee34bb100969cf34222ef (patch)
treeb12903d3abb0f47e13e71b2dddfde6fe5b449434 /sleekxmpp/plugins
parentdaa73a3f3c793014c653a3d08c5f8af5600170da (diff)
downloadslixmpp-a7b092a305ec180856dee34bb100969cf34222ef.tar.gz
slixmpp-a7b092a305ec180856dee34bb100969cf34222ef.tar.bz2
slixmpp-a7b092a305ec180856dee34bb100969cf34222ef.tar.xz
slixmpp-a7b092a305ec180856dee34bb100969cf34222ef.zip
Fix Python3 exception handling.
Fixes issue #173
Diffstat (limited to 'sleekxmpp/plugins')
-rw-r--r--sleekxmpp/plugins/xep_0065/proxy.py2
1 files changed, 1 insertions, 1 deletions
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)