Log when we fail to find a share activity for a given id

This commit is contained in:
Tomeu Vizoso 2010-08-10 14:20:08 +02:00
parent 633214e2b6
commit 11d0574b3f

View File

@ -267,10 +267,13 @@ class PresenceService(gobject.GObject):
connection_manager = get_connection_manager() connection_manager = get_connection_manager()
connections_per_account = connection_manager.get_connections_per_account() connections_per_account = connection_manager.get_connections_per_account()
for account_path, connection in connections_per_account.items(): for account_path, connection in connections_per_account.items():
logging.debug("Calling GetActivity on %s", account_path)
try: try:
room_handle = connection.GetActivity(activity_id) room_handle = connection.GetActivity(activity_id)
except dbus.exceptions.DBusException, e: 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 raise
else: else:
activity = Activity(account_path, connection, activity = Activity(account_path, connection,