diff options
Diffstat (limited to 'skype/skyped.py')
-rw-r--r-- | skype/skyped.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/skype/skyped.py b/skype/skyped.py index dbbd2e53..c2773a97 100644 --- a/skype/skyped.py +++ b/skype/skyped.py @@ -41,7 +41,11 @@ def eh(type, value, tb): if type != KeyboardInterrupt: print_exception(type, value, tb) gobject.MainLoop().quit() - skype.skype.Client.Shutdown() + # shut down client if it's running + try: + skype.skype.Client.Shutdown() + except NameError: + pass sys.exit("Exiting.") sys.excepthook = eh |