diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.co.uk> | 2010-08-10 12:20:08 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.co.uk> | 2010-08-20 13:33:53 (GMT) |
commit | 11d0574b3f9037dff875d8a0f963daee753786ea (patch) | |
tree | ca5371211a75ea18b443ef5d610702e94ed5671e | |
parent | 633214e2b6b0f4a5fea74caa8f135115da1961d1 (diff) |
Log when we fail to find a share activity for a given id
-rw-r--r-- | src/sugar/presence/presenceservice.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sugar/presence/presenceservice.py b/src/sugar/presence/presenceservice.py index 02f727c..1eb5fa6 100644 --- a/src/sugar/presence/presenceservice.py +++ b/src/sugar/presence/presenceservice.py @@ -267,10 +267,13 @@ class PresenceService(gobject.GObject): connection_manager = get_connection_manager() connections_per_account = connection_manager.get_connections_per_account() for account_path, connection in connections_per_account.items(): + logging.debug("Calling GetActivity on %s", account_path) try: room_handle = connection.GetActivity(activity_id) except dbus.exceptions.DBusException, e: - if e.get_dbus_name() != 'org.freedesktop.Telepathy.Error.NotAvailable': + if e.get_dbus_name() == 'org.freedesktop.Telepathy.Error.NotAvailable': + logging.debug("There's no shared activity with the id %s", activity_id) + else: raise else: activity = Activity(account_path, connection, |