aboutsummaryrefslogtreecommitdiffstats
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-rw-r--r--protocols/skype/skyped.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/skype/skyped.py b/protocols/skype/skyped.py
index ae4df6a2..19de51aa 100644
--- a/protocols/skype/skyped.py
+++ b/protocols/skype/skyped.py
@@ -129,7 +129,7 @@ def send(sock, txt, tries=10):
if not options.conn: return
try:
sock.sendall(txt)
- except Exception, s:
+ except socket.error as s:
dprint("Warning, sending '%s' failed (%s)." % (txt, s))
options.conn.close()
options.conn = False
@@ -140,7 +140,7 @@ def send(sock, txt, tries=10):
try:
if options.conn: sock.sendall(txt)
options.lock.release()
- except Exception, s:
+ except socket.error as s:
options.lock.release()
dprint("Warning, sending '%s' failed (%s). count=%d" % (txt, s, count))
time.sleep(1)