aboutsummaryrefslogtreecommitdiffstats
path: root/skype/skyped.py
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2008-09-06 04:59:03 +0200
committerMiklos Vajna <vmiklos@frugalware.org>2008-09-06 04:59:03 +0200
commit74159899faae3dd0a01e7d139bda0b6766d466fd (patch)
treef99b4e39d186402bdf721478210a6efa6300decd /skype/skyped.py
parent720ae585474d544a25598c6d92f9e9184fec80b2 (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)
Diffstat (limited to 'skype/skyped.py')
-rw-r--r--skype/skyped.py6
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