From 43e2e9d61306e93c8435de5bba6a631a942645cd Mon Sep 17 00:00:00 2001 From: VMiklos Date: Wed, 22 Aug 2007 00:52:53 +0200 Subject: skyped: fix a warning --- skype/skyped.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/skype/skyped.py b/skype/skyped.py index 6cf542e0..1a2d3c25 100644 --- a/skype/skyped.py +++ b/skype/skyped.py @@ -111,7 +111,10 @@ class SkypeApi(dbus.service.Object): except dbus.exceptions.DBusException, s: reply = str(s) if(reply.startswith("org.freedesktop.DBus.Error.ServiceUnknown")): - self.remove_from_connection(dbus.SessionBus(), "/com/Skype/Client") + try: + self.remove_from_connection(dbus.SessionBus(), "/com/Skype/Client") + except LookupError: + pass mainloop.quit() dprint('<< ' + reply) return reply -- cgit v1.2.3