[kupfer] Handle Telepathy (dbus) exception
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [kupfer] Handle Telepathy (dbus) exception
- Date: Tue, 3 Jul 2012 21:24:20 +0000 (UTC)
commit a1c79671d9593d36f024524d9d887a856c2567b0
Author: Stas SUÈCOV <stas net utcluj ro>
Date: Sun Jul 1 20:53:59 2012 +0300
Handle Telepathy (dbus) exception
`dbus.exceptions.DBusException: org.freedesktop.Telepathy.Error.NotImplemented:
No properties known for interface org.freedesktop.Telepathy.Channel.Interface.Group`
kupfer/plugin/empathy.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/plugin/empathy.py b/kupfer/plugin/empathy.py
index 8af3bc0..065b978 100644
--- a/kupfer/plugin/empathy.py
+++ b/kupfer/plugin/empathy.py
@@ -206,7 +206,11 @@ class ContactsSource(AppLeafContentMixin, ToplevelGroupingSource,
channels = connection.ListChannels()
for channel in channels:
contact_group = bus.get_object(connection_iface, channel[0])
- contacts = contact_group.Get(CHANNEL_GROUP_IFACE, "Members")
+ try:
+ contacts = contact_group.Get(CHANNEL_GROUP_IFACE, "Members")
+ except dbus.exceptions.DBusException, ex:
+ self.output_info(ex)
+ contacts = None
if contacts:
contacts = [c for c in contacts]
contact_attributes = connection.Get(CONTACT_IFACE, "ContactAttributeInterfaces")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]