Changeset 3922d44


Ignore:
Timestamp:
2007-10-06T15:25:21Z (17 years ago)
Author:
VMiklos <vmiklos@…>
Branches:
master
Children:
a75f2a7
Parents:
df9255d
Message:

handle the case when ping fails (ie: timeout)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skype/skyped.py

    rdf9255d r3922d44  
    5252
    5353def idle_handler(skype):
    54         skype.skype.SendCommand(skype.skype.Command(-1, "PING"))
     54        try:
     55                skype.skype.SendCommand(skype.skype.Command(-1, "PING"))
     56        except Skype4Py.SkypeAPIError, s:
     57                dprint("Warning, pinging Skype failed (%s)." % (s))
    5558        try:
    5659                time.sleep(2)
Note: See TracChangeset for help on using the changeset viewer.