diff options
| author | Mike Kazantsev <mk.fraggod@gmail.com> | 2013-02-11 13:56:04 +0100 | 
|---|---|---|
| committer | Miklos Vajna <vmiklos@suse.cz> | 2013-02-11 13:56:04 +0100 | 
| commit | b6ab05bd13a498204ae322c9d9fd1eb5ec6abb30 (patch) | |
| tree | 02036f8f01760d2cf6446c6a03d8b859b3c536f2 | |
| parent | 4da4e9b8a8260a55f734fefcf80ce64fc6dbdfc5 (diff) | |
skype: handle only socket errors in send()
| -rw-r--r-- | protocols/skype/skyped.py | 4 | 
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) | 
