- Timestamp:
- 2008-01-12T21:18:21Z (17 years ago)
- Branches:
- master
- Children:
- 57f0440
- Parents:
- 10a42d9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
skype/skyped.py
r10a42d9 reeeb30e 38 38 from ConfigParser import ConfigParser 39 39 from OpenSSL import SSL 40 from traceback import print_exception 41 #from exceptions import KeyboardInterrupt 40 42 41 43 __version__ = "0.1.1" … … 43 45 SKYPE_SERVICE = 'com.Skype.API' 44 46 CLIENT_NAME = 'SkypeApiPythonShell' 47 48 def eh(type, value, tb): 49 if type == KeyboardInterrupt: 50 sys.exit("Exiting.") 51 print_exception(type, value, tb) 52 sys.exit(1) 53 54 sys.excepthook = eh 45 55 46 56 def input_handler(fd, io_condition): … … 61 71 except Skype4Py.SkypeAPIError, s: 62 72 dprint("Warning, pinging Skype failed (%s)." % (s)) 63 try:64 73 time.sleep(2) 65 except KeyboardInterrupt:66 sys.exit("Exiting.")67 74 return True 68 75
Note: See TracChangeset
for help on using the changeset viewer.