diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2008-09-06 04:59:03 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@frugalware.org> | 2008-09-06 04:59:03 +0200 |
commit | 74159899faae3dd0a01e7d139bda0b6766d466fd (patch) | |
tree | f99b4e39d186402bdf721478210a6efa6300decd | |
parent | 720ae585474d544a25598c6d92f9e9184fec80b2 (diff) |
ignore error if not yet started skyped fails to shut down
at this points skyped runs fine for me on osx (plugin is not yet tested)
-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 |