Changeset b6ab05b for protocols


Ignore:
Timestamp:
2013-02-11T12:56:04Z (12 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
61d2eabb
Parents:
4da4e9b
git-author:
Mike Kazantsev <mk.fraggod@…> (11-02-13 12:56:04)
git-committer:
Miklos Vajna <vmiklos@…> (11-02-13 12:56:04)
Message:

skype: handle only socket errors in send()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/skype/skyped.py

    r4da4e9b rb6ab05b  
    130130                try:
    131131                        sock.sendall(txt)
    132                 except Exception, s:
     132                except socket.error as s:
    133133                        dprint("Warning, sending '%s' failed (%s)." % (txt, s))
    134134                        options.conn.close()
     
    141141                                         if options.conn: sock.sendall(txt)
    142142                                         options.lock.release()
    143                                 except Exception, s:
     143                                except socket.error as s:
    144144                                        options.lock.release()
    145145                                        dprint("Warning, sending '%s' failed (%s). count=%d" % (txt, s, count))
Note: See TracChangeset for help on using the changeset viewer.