diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2008-08-08 13:57:19 (GMT) |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2008-08-08 14:00:27 (GMT) |
commit | 2d0b9d08a07e9aaca50dc04eb52571f872570cdf (patch) | |
tree | c05b007a6ef22e59bc7458c9e34c09fff567be7e | |
parent | c63b302941060e96c42a0b16b9560c028d802463 (diff) |
catch the InvalidHandle exception and not InspectHandles (too fast completion error...)
-rw-r--r-- | src/telepathy_plugin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/telepathy_plugin.py b/src/telepathy_plugin.py index 3344361..25bbd1c 100644 --- a/src/telepathy_plugin.py +++ b/src/telepathy_plugin.py @@ -364,7 +364,7 @@ class TelepathyPlugin(gobject.GObject): try: jid = self._conn[CONN_INTERFACE].InspectHandles(handle_type, [handle]) - except (InvalidArgument, InspectHandles): + except (InvalidArgument, InvalidHandle): continue else: jids.append(jid[0]) @@ -393,7 +393,7 @@ class TelepathyPlugin(gobject.GObject): try: jids = self._conn[CONN_INTERFACE].InspectHandles( HANDLE_TYPE_CONTACT, relevant) - except (InvalidArgument, InspectHandles): + except (InvalidArgument, InvalidHandle): # InspectHandles failed so discard invalid handles by trying to # inspect them one by one. # FIXME: the Contacts interface should offer a proper way to do this. |