diff options
Diffstat (limited to 'skype/skyped.py')
-rw-r--r-- | skype/skyped.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/skype/skyped.py b/skype/skyped.py index 6cc5f4c6..163e9e78 100644 --- a/skype/skyped.py +++ b/skype/skyped.py @@ -44,10 +44,11 @@ SKYPE_SERVICE = 'com.Skype.API' CLIENT_NAME = 'SkypeApiPythonShell' def eh(type, value, tb): - if type == KeyboardInterrupt: - sys.exit("Exiting.") - print_exception(type, value, tb) - sys.exit(1) + if type != KeyboardInterrupt: + print_exception(type, value, tb) + gobject.MainLoop().quit() + skype.skype.Client.Shutdown() + sys.exit("Exiting.") sys.excepthook = eh |